Giter Site home page Giter Site logo

ibliskavka / aws-angular-stack-starter Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 7.0 102 KB

This starter project shows how to create the hosting infrastructure for an Angular app using CloudFormation and how to deploy the app using the CLI.

Home Page: https://medium.com/@ibliskavka/aws-angular-stack-automation-b45767bda2ec

JavaScript 16.89% TypeScript 68.19% HTML 14.13% CSS 0.79%
angular cloudformation aws devops s3 cloudfront route53

aws-angular-stack-starter's Introduction

AWS Angular Stack Automation

Introduction

This starter project shows how to create the hosting infrastructure for an Angular app using CloudFormation and how to deploy the app using the CLI.

The full write up and article can be found at:
https://medium.com/@ibliskavka/aws-angular-stack-automation-b45767bda2ec

Prerequisites

  • Amazon Route53 Domain
  • Amazon Certificate Manager cert for the domain

Deploy the stack

Run the following command from the /stack directory:
(replace asterisks with your own values)

aws cloudformation deploy --template-file template.yml --stack-name aws-ng-demo --parameter-overrides BaseUrl=*** AppUrl=*** AcmCertArn=***

Get the CloudFront DistributionId and S3 bucket by running the following command
(you can also get this from the web console)

aws cloudformation describe-stacks --stack-name aws-ng-demo --query "Stacks[0].Outputs[?OutputKey==`DistributionId` || OutputKey==`AppBucket`]"

Deploy the App

  1. Update /demo-app/package.json/scripts/deploy
    Replace {AppBucket} & {DistributionId} with your stack outputs
  2. Run the following command from the /demo-app directory
    npm run deploy

Congratulations! You have deploy the infrastructure and code for an angular app entirely from console. Now drop this into CodePipeline & CodeBuild to get your CI/CD pipeline started.

aws-angular-stack-starter's People

Contributors

ibliskavka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.