Skip to content

nleut/apprunner-hotel-app

 
 

Repository files navigation

AppRunner Hotel App

Note: This is not Production grade and simply meant as a demo

Description

This project provisions the base layer infrastructure to demonstrate how AppRunner leverages a VPC Connector to interact with a DB in a private subnet.

AWS Services

  • 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

Deployment Instructions

  • Select a region where App Runner is available
  • Create a Cloudformation stack using base-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 base-infra.yaml. See Outputs tab)
        • HOTEL_NAME: HotelName ARN (Provisioned by base-infra.yaml. See Outputs tab)
      • Security: AppRunnerHotelAppRole (Provisioned by base-infra.yaml)
      • Networking:
        • Custom VPC: AppRunnerV2NPrototype-RDS-Connector (Provisioned by infra.yaml)
      • Observability: Enable Tracing with AWS X-Ray

Teardown Instructions

  • Go to AppRunner console and delete the service.
  • Go to Cloudformation and delete the stack.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 63.3%
  • Pug 32.6%
  • CSS 3.3%
  • Dockerfile 0.8%