AWS Credential Setup Guide

Overview

This guide walks you through creating AWS credentials for the Infra Execution Layer MCP server.

Step 1: Create an IAM User

  1. Log in to the AWS Management Console
  2. Navigate to IAMUsersCreate user
  3. Enter a user name (e.g., infra-execution-layer)
  4. Click Next

Step 2: Set Permissions

Choose Attach policies directly and add these policies:

Minimum Required Permissions

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "ec2:*",
        "rds:*",
        "s3:*",
        "lambda:*",
        "iam:CreateRole",
        "iam:DeleteRole",
        "iam:AttachRolePolicy",
        "iam:DetachRolePolicy",
        "iam:PutRolePolicy",
        "iam:DeleteRolePolicy",
        "iam:GetRole",
        "iam:GetRolePolicy",
        "iam:ListRolePolicies",
        "iam:ListAttachedRolePolicies",
        "logs:CreateLogGroup",
        "logs:DeleteLogGroup",
        "logs:DescribeLogGroups",
        "cloudformation:*"
      ],
      "Resource": "*"
    }
  ]
}

Or Use Managed Policies

For easier setup, attach these AWS managed policies:

Step 3: Create Access Key

  1. After creating the user, go to the user's Security credentials tab
  2. Click Create access key
  3. Choose Other as the use case
  4. Click Next
  5. Click Create access key
  6. Copy both values:
    • Access Key ID (starts with AKIA...)
    • Secret Access Key

⚠️ Important: The Secret Access Key is shown only once. Copy it immediately.

Step 4: Store Credentials in MCP

Option A: Using the MCP Tool

Ask the agent to store your credentials:

Store my AWS credentials with name "Production AWS"
Access Key ID: AKIAIOSFODNN7EXAMPLE
Secret Access Key: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
Region: us-east-1

Option B: Using the Setup Script

node scripts/setup-credentials.js

Step 5: Verify Setup

Ask the agent:

List my stored credentials

You should see your credentials listed with the name you provided.

Security Notes

Next Steps

Once credentials are stored, you can test the full deployment flow:

Deploy a production-ready web application with a database

The agent will:

  1. Generate deployment suggestions
  2. Show pricing estimates
  3. Use your stored credentials to deploy
  4. Provide outputs (instance IDs, endpoints, etc.)