First, push your local code to AWS AgentCore using the command:
agentcore configure -e ./{your_python_file.py}


Enter a name for your Agent.
Press Enter to use the default configuration file pyproject.toml.
Select 2 – Deploy using Docker, allowing AgentCore to automatically build and manage your Docker image.
Keep the default setting and let AWS create the IAM Role automatically.
Press Enter to let AWS create the ECR repository for storing the Docker image.
Choose No for OAuth. The Agent will only allow access via AWS IAM Access Key & Secret Key.
Press Enter to use the default allowlist configuration.
Once this step is completed, your code has been successfully uploaded to AgentCore.
Use the command below to start the Agent with your API Key (using GROQ):
agentcore launch --env GROQ_API_KEY=your_api_key_here
When the terminal shows Running, your Agent is successfully running.
