Quick Start Guide¶
This guide will get you up and running with AgentCore CLI in just a few minutes. Follow these steps to set up your environment and deploy your first agent.
Prerequisites¶
Before starting, ensure you have:
- Installed AgentCore CLI
- AWS credentials configured
- Docker installed and running
Step 1: Initialize Your Project¶
Start by initializing your AgentCore CLI project:
Run the initialization wizard with:
Bash | |
---|---|
The interactive wizard will guide you through:
- AWS region selection
- Environment setup
- Confirmation of required AWS resources
Once initialization is complete, you'll have:
- A default environment (
dev
) configured - AWS region set
- Basic configuration file created at
.agentcore/config.json
Step 2: Deploy Your First Agent¶
Now let's deploy a simple agent. Create a minimal Dockerfile or use our example:
Dockerfile | |
---|---|
Create a simple Python agent:
And a requirements file:
requirements.txt | |
---|---|
Now deploy your agent:
Bash | |
---|---|
This single command will:
- Build your Docker image
- Create an ECR repository if it doesn't exist
- Push the image to ECR
- Create an IAM role with necessary permissions
- Deploy the agent runtime on Bedrock AgentCore
- Configure a default endpoint
Step 3: Test Your Agent¶
Test your deployed agent with:
Bash | |
---|---|
You should see a response similar to:
Step 4: Check Agent Status¶
View the status of your deployed agent:
Bash | |
---|---|
This will show: - Current runtime version - Available endpoints - Deployment status - Container image details
Next Steps¶
You've successfully deployed your first agent! Here's what to explore next:
- Deploy your first agent - A more detailed tutorial
- Environment management - Learn about dev/staging/prod separation
- Agent lifecycle - Creating, updating, and managing agents
- Container operations - Docker and ECR management
Common Issues¶
If you encounter any problems:
- Ensure Docker is running (
docker ps
) - Verify AWS credentials are valid (
aws sts get-caller-identity
) - Check that you have required permissions for Bedrock AgentCore and ECR
- See our troubleshooting guide for more help