docs/provider-config/aws-bedrock/api-key.mdx
For more detailed instructions check the documentation.
AmazonBedrockLimitedAccess IAM policy
View AmazonBedrockLimitedAccess Policy DetailsTo 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:InvokeModelWithResponseStreambedrock:CallWithBearerTokenYou can create a custom IAM policy with these permissions and attach it to your IAM user or role.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": ["bedrock:InvokeModel", "bedrock:InvokeModelWithResponseStream", "bedrock:CallWithBearerToken"],
"Resource": "*" // For enhanced security, scope this to specific model ARNs if possible.
}
]
}
ClineBedrockInvokeAccess) and attach it to the IAM user associated with the key you created. The IAM user and the API key have the same prefix.Important 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.AmazonBedrockLimitedAccess policy grants you the necessary permissions to subscribe via the AWS Marketplace. There is no explicit access to be enabled. For Anthropic models you are still required to submit a First Time Use (FTU) form via the Console. If you get the following message in the Cline chat [ERROR] Failed to process response: Model use case details have not been submitted for this account. Fill out the Anthropic use case details form before using the model. then open the Playground in the AWS Bedrock Console, select any Anthropic model and fill in the form (you might need to send a prompt first)Ctrl+Shift+X or Cmd+Shift+X).us-east-1 or your enterprise-approved region).By following these steps, you can quickly integrate AWS Bedrock with the Cline VS Code extension to accelerate development:
For further details, consult the AWS Bedrock Documentation. 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.