This guide walks you through connecting your AWS account to 4MINDS so you can use Amazon Bedrock foundation models. There are three connection methods available:Documentation Index
Fetch the complete documentation index at: https://docs.4minds.ai/llms.txt
Use this file to discover all available pages before exploring further.
- IAM Role Federation (recommended) — no credentials stored; temporary STS credentials minted per request
- Bedrock API Key — simplest setup, generated directly in the Bedrock console
- Amazon Cognito — use if your organization already manages AWS access through Cognito
Bedrock IAM Permissions Policy
Whichever IAM-based method you pick (IAM Role Federation or Cognito), you’ll attach this policy to the role:| Permission | Purpose |
|---|---|
bedrock:ListFoundationModels | Lists available foundation models (Claude, Llama, Mistral, etc.) |
bedrock:GetFoundationModel | Retrieves details about a specific foundation model |
bedrock:InvokeModel | Sends prompts and receives responses from models |
bedrock:InvokeModelWithResponseStream | Enables streaming responses for real-time output |
bedrock:ListCustomModels | Lists custom fine-tuned models in your account |
bedrock:GetCustomModel | Retrieves details about a specific custom model |
sts:GetCallerIdentity | Verifies the connection is authenticated correctly |
4MINDS-Bedrock-Access — you’ll reference it when attaching permissions in the role/Cognito setup.
Least-Privilege: Restricting to Specific Models
The policy above uses"Resource": "*" for broad access. To scope to specific regions or models:
Restrict to a single region:
arn:aws:bedrock:<region>::foundation-model/<model-id>
Note:ListFoundationModelsandListCustomModelsstill require"Resource": "*". Split these into a separate statement if you scopeInvokeModelto specific model ARNs.
Connection Methods
Method 1: IAM Role Federation (Recommended)
Follow the full role federation setup in AWS Integrations → IAM Role Federation. Attach the4MINDS-Bedrock-Access policy (from above) when creating the IAM role.
Then, in 4MINDS:
- Open Integrations from the main navigation bar and select Amazon Bedrock
- Select the IAM Role tab
- Paste your IAM Role ARN
- Optionally enter an External ID if you configured one in the trust policy
- Enter your AWS Region (must match the region where you’ve enabled Bedrock model access)
- Click Test Connection, then Save Credentials
Method 2: Bedrock API Key
The simplest setup — generate an API key directly from the Bedrock console. No IAM role or Cognito pool needed.AWS Setup
- Go to AWS Console → Amazon Bedrock
- In the left sidebar, click API keys
- Choose your key type:
- Short-term API key (recommended for production) — expires when your console session expires (12 hours). Click Generate short-term API keys
- Long-term API key — can last longer than 12 hours. Click Long-term API keys, configure expiration, and generate
- Copy the API key once generated
Note: Short-term keys require regenerating and updating your 4MINDS connection when they expire. For a set-it-and-forget-it setup, use IAM Role Federation (Method 1).
Connect in 4MINDS
- Open Integrations and select Amazon Bedrock
- Select the API Key tab
- Paste the Bedrock API key
- Enter your AWS Region
- Click Test Connection, then Save Credentials
Security note: API keys are encrypted at rest. For production environments requiring maximum security, prefer IAM Role Federation (Method 1) — it stores nothing long-lived.
Method 3: Amazon Cognito
Follow the full Cognito setup in AWS Integrations → Amazon Cognito. Attach the4MINDS-Bedrock-Access policy (from above) to the Cognito authenticated role.
Then, in 4MINDS:
- Open Integrations and select Amazon Bedrock
- Select the Cognito tab
- Fill in the Cognito fields (User Pool ID, App Client ID, App Client Secret if used, Identity Pool ID, Username, Password)
- Enter your AWS Region (must match your User Pool and Identity Pool region)
- Click Test Connection, then Save Credentials
After Connecting: Adding Models
Once connected:- Open Integrations and select Amazon Bedrock
- Browse the list of available foundation models — all supported models appear automatically
- Click to register models you want to use in your workspace
- Registered models appear in your model selector for conversations
Supported AWS Regions
Amazon Bedrock is available in select regions. Common options:us-east-1(N. Virginia)us-east-2(Ohio)us-west-2(Oregon)eu-west-1(Ireland)eu-central-1(Frankfurt)ap-southeast-1(Singapore)ap-northeast-1(Tokyo)
Troubleshooting
| Issue | Solution |
|---|---|
| ”No models found” | Verify the region is correct and that your IAM policy includes bedrock:ListFoundationModels |
| Connection times out | Verify the region is correct and Bedrock is enabled there |
| ”Access Denied” | Confirm the IAM policy is attached to the correct identity |
| ”Unrecognized client” | Wrong region, or Bedrock isn’t enabled in that region |
| API key expired | Generate a new short-term key or use a long-term key / IAM Role Federation |
Disconnecting
- Open Integrations and select Amazon Bedrock
- Click Disconnect

