Note: This is not Production grade and simply meant as a demo
This project provisions the base layer infrastructure to demonstrate how AppRunner leverages a VPC Connector to interact with a DB in a private subnet.
- VPC (private + public subnets, IGW, NGW)
- Aurora MySQL in private subnet
- VPC Connector for AppRunner and requisite security groups
- Secrets Manager for DB credentials
Note : AWS App Runner is currently available in these regions:
- us-east-1
- us-east-2
- us-west-2
- ap-northeast-1
- eu-west-1
- Select a region where App Runner is available
- Create a Cloudformation stack using infra.yaml
- Deploy the application using the AppRunner Console.
- Source
- Point to your Github repo
- Configure Build
- Runtime: Nodejs 16
- Build command: npm install
- Start command: npm start
- Port: 8080 (default)
- Configure service
- Environment variable:
- MYSQL_SECRET: DBSecret ARN (Provisioned by infra.yaml. See Outputs tab)
- HOTEL_NAME: HotelName ARN (Provisioned by infra.yaml. See Outputs tab)
- Security: AppRunnerHotelAppRole (Provisioned by infra.yaml)
- Networking:
- Custom VPC: AppRunnerV2NPrototype-RDS-Connector (Provisioned by infra.yaml)
- Observability: Enable Tracing with AWS X-Ray
- Environment variable:
- Source
- Go to AppRunner console and delete the service.
- Go to Cloudformation and delete the stack.