Skip to main content
Make sure you are in the agent-infra-aws directory. If you are not, run the following command:
cd agent-infra-aws
Start your Agent Infra AWS using the following:
ag infra up prd:aws
This command will:
  1. Create and push a Docker image to AWS ECR. In the directory defined by you in InfraSettings.
  2. Create the following resources on AWS:
- AWS Secrets
- AWS Db Subnet Group
- AWS RDS Instance
- AWS Load Balancer
- AWS Target Group
- AWS Listener
- AWS ECS Cluster
- AWS ECS Service
- AWS ECS Task
- AWS ECS Task Definition
Press Enter to confirm and give a few seconds for the image to download (only the first time). Verify resources in the AWS console.
The RDS database takes about 5 minutes to activate. You can check the status in the AWS console.

Stop Agent Infra on AWS

Play around with the AgentOS and stop it using:
ag infra down prd:aws

Update Agent Infra AWS

Any changes you make to the codebase will be reflected in the running container. You can restart the container using:
ag infra patch --env prd --infra aws --name <resource-name>
Checkout the AWS Template managment documentation below for more information on updating resources.
For managing the AWS infrastructure, make sure to look at the infra management documentation here.

Next

Congratulations on running your Agent Infra AWS. Next Steps: