Skip to content
Switch branches/tags
Go to file

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time


Convention over configuration based AWS Blueprint for running Angular web apps in AWS driven by CI/CD and CloudFormation.

What this gives you

  • Multi-stage, feature branch, CI/CD driven via CodePipeline and Codebuild
  • Angular assets gzipped & CDN cached and hosted from S3 origin - supporting Angular routing
  • No-maintence, free HTTPS via ACM
  • Root domain apex support with redirection
  • Local HTTPS support via ngrok
  • Node module vendoring (aka commit node_modules) with yarn autoclean


  1. Create a github access token. This token will be used by the CI/CD to pull code. Required scopes: admin:repo_hook, repo
  2. An SNS topic for CI/CD code promotion approvals. Subscribe your email address to it.
  3. Yarn
  4. Optional: free ngrok account required for local HTTPS support


  1. make install
  2. make run/local-webapp
  3. Optonal: For local HTTPS, in another terminal tab: make run/ngrok-webapp (free ngrok account required).

Setup CI/CD

  1. Set values in aws/cloudformation/parameters/*.json. The CI/CD CodePipeline will pass these into the cloud formation template (aws/cloudformation/template.yml) for each stage stack that is created. Typically the values are the same for each .json file except for StageName. Setting CreateCloudFront to false is helpful early on to bypass slow CDN creation while you are working out kinks.
  2. Create a new CloudFormation stack using aws/cloudformation/pipeline.yml. Stack naming convention: [repo]--[branch]--webapp--cicd. Ex: abp-angular--master--webapp-cicd. This pipeline.yml creates a CodePipeline that is your CI/CD.
  3. Do a git push and watch the newly created CodePipeline. As each stage in the pipeline completes, look at the Outputs tab of the executed CloudFormation changeset for the AppURL. Don't see AppURL? Make sure CreateCloudFront is true in aws/cloudformation/parameters/*.json (just git push after changing it to true).

Root apex redirect

Optional: setup root apex redirect (both HTTP&HTTPS). Ex: -> by following my directions here, jump right to step 5.


AWS Blueprint for Angular web application



No releases published


No packages published