This repo is an example repo used in the blog: https://blog.elva-group.com/lets-build-an-agent-on-aws
- Python 3.13
- uv
- AWS Credentials
- (optional) docker or podman for local container building
- Run
uv sync - Activate venv via
source .venv/bin/activate - Set your AWS Credentials as environment variables or similar
- Run
un run main.pyto start the agent locally - Query the agent via curl or similar to get an streaming response:
curl -X POST http://localhost:8080/invocations \ -H "Content-Type: application/json" \ -d '{"prompt": "Which tools do you have available?"}' - To skip the AgentCore framework, run the standalone.py directly to directly invoke the agent in your console.
uv run standalone.py. Adjust the last line to play around with different questions like:agent("What is the best color?")
- Adjust account in .bedrock_agentcore.yaml
- Make sure your AWS credentials is set and you are using a AgentCore supported region such as eu-west-1
- run
uv run agentcore launchto deploy the agent to AWS Bedrock AgentCore, after the deployment you can find your agent in the console