Installation¶
This guide will help you install and set up the AgentCore CLI on your system.
Prerequisites¶
Before installing the AgentCore CLI, ensure you have:
- Python 3.11+ installed on your system
- Docker installed and running (for building and managing container images)
- AWS CLI configured with appropriate permissions
- Access to Amazon Bedrock AgentCore Runtime (Preview)
Installation Options¶
Verifying Installation¶
After installation, verify that the AgentCore CLI is working correctly:
Bash | |
---|---|
You should see the version number and a welcome banner.
AWS Credentials¶
The AgentCore CLI requires valid AWS credentials to function. You can set these up in several ways:
Bash | |
---|---|
You'll be prompted to enter:
- AWS Access Key ID
- AWS Secret Access Key
- Default region name
- Default output format (optional)
If your organization uses AWS Single Sign-On:
If you're running on an EC2 instance or ECS container, you can use IAM roles attached to your compute resource.
Required AWS Permissions¶
The AgentCore CLI requires the following AWS permissions:
- Bedrock AgentCore: For runtime management
- ECR: For repository and image management
- IAM: For role creation and management
- CloudFormation: For stack management
- Cognito: For user pool management
- Parameter Store: For configuration sync
- CloudWatch Logs: For monitoring
Here's a sample IAM policy with the minimum required permissions:
Warning
This is a sample policy with broad permissions. In production, you should follow the principle of least privilege and restrict permissions to only what's necessary.
Next Steps¶
Once you've installed the AgentCore CLI, you're ready to:
- Run the initialization wizard to set up your project
- Deploy your first agent
If you encounter any issues during installation, see our troubleshooting guide.