Steps:
- Create aws account
- IAM user with appropriate permissions(user group)
- access token
- install aws cli v2
- configure
aws configurewith access-key-ID, secret access key,region,output format
-
Configure the Entrypoint: Link the runtime to your code.
# Registers your python file as the entry point agentcore configure -e 01_agentcore_runtime.py -
Set Environment Variables:
# Launch with your environment file (containing API keys etc.) agentcore launch --env .env -
Invoke the Agent:
# Send a test payload to the running agent agentcore invoke "{'prompt': 'your prompt'}"