thegodshatetexas / apprunner-hotel-app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 with rotation enabled

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 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:
        • secret: Secrets Manager secret name (Provisioned by infra.yaml)
      • Security: AppRunnerHotelAppRole (Provisioned by 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

License:MIT No Attribution


Languages

Language:JavaScript 67.4%Language:Pug 29.6%Language:CSS 3.0%