docs/provider-config/aws-bedrock/iam-credentials.mdx
To ensure Cline can interact with AWS Bedrock, your IAM user or role needs specific permissions. While the AmazonBedrockLimitedAccess managed policy provides comprehensive access, for a more restricted and secure setup adhering to the principle of least privilege, the following minimal permissions are sufficient for Cline's core model invocation functionality:
bedrock:InvokeModelbedrock:InvokeModelWithResponseStreamYou can create a custom IAM policy with these permissions and attach it to your IAM user or role.
Option 1: Minimal Permissions (Recommended for Production & Least Privilege)
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": ["bedrock:InvokeModel", "bedrock:InvokeModelWithResponseStream"],
"Resource": "*" // For enhanced security, scope this to specific model ARNs if possible.
}
]
}
ClineBedrockInvokeAccess) and attach it to your IAM user or role.Option 2: Using a Managed Policy (Simpler Initial Setup)
AmazonBedrockLimitedAccess. This grants broader permissions, including the ability to list models, manage provisioning, and other Bedrock features. This might be simpler for initial setup or if you require these wider capabilities.
View AmazonBedrockLimitedAccess Policy DetailsImportant Considerations:
bedrock:InvokeModel, bedrock:InvokeModelWithResponseStream) are sufficient for Cline to use a model if you specify the model ID directly in Cline's settings. If you rely on Cline to dynamically list available Bedrock models, you might need additional permissions like bedrock:ListFoundationModels.aws-marketplace:Subscribe permissions if not already handled.Ctrl+Shift+X or Cmd+Shift+X).us-east-1 or your enterprise-approved region).By following these steps, your enterprise team can securely integrate AWS Bedrock with the Cline VS Code extension to accelerate development:
AmazonBedrockLimitedAccess policy, and ensure necessary permissions.For further details, consult the AWS Bedrock Documentation and coordinate with your internal cloud team. Happy coding!
This guide will be updated as AWS Bedrock and Cline evolve. Always refer to the latest documentation and internal policies for up-to-date practices.