Skip to content

Demonstrates creation of a AWS CI CD pipeline using AWS CodeBuild and AWS CodePipeline for a Angular and Spring boot application on AWS Beanstalk.

Notifications You must be signed in to change notification settings

nj11/Angular-starter-aws-cicd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Angular-starter-aws-cicd

Demonstrates creation of a CI CD pipeline in AWS for a Angular boot application.

The sample Angular Boot application used for this exercise resides at this location https://github.com/nj11/Angular_starter

The AWS CI / CD tools used are:

  • AWS CodeBuild
  • AWS CodePipeline
  • AWS Beanstalk for deployment environment.

Pre-requisites

Amazon developer console account login.If you don't have an account create it here. https://aws.amazon.com/console/

Environment

  • GitHub --> Code Repository
  • AWS Beanstalk --> Deployment environment
  • AWS CodeBuild --> Build tool that builds artifacts from source code
  • S3 --> Artifacts are staged here after build.
  • AWS CodePipeline --> Code checked into Github triggers a AWS build which deploys artifacts to S3 and then deploys them to AWS Beanstalk environment.

Alt desc

Step 1 : Beanstalk environment creation.

  • Sign in to to AWS console using your account .Navigate to My Account--> AWS Management Console. Go to Services-->Elastic beanstalk and then select Create a new application.

Alt desc

Alt desc

  • Select the appropriate tier.In this case we are selecting Web server environment.

  • Enter your application details.

Alt desc

  • Enter application platform, in this case it's Java

Alt desc

  • For now choose sample application.We will upload and deploy application jar later. Alt desc

  • Environment creation takes a few minutes.

Alt desc

  • Once the environment is ready, click on the enviornment name link as highlighted.

Alt desc

  • You can check the environment page, along with configuration details like enviornment variables,logs and application URL.

Alt desc

Step 2 : AWS Pipeline creation including creating the build stage

  • Make sure the buildspec.yml exists in the root folder of your github project

Alt desc

  • Select Developer Tools --> CodePipeline--> Create Pipeline

Alt desc

  • Enter pipeline name and service role for this pipeline.

Alt desc

  • Enter Artifact store and enryption key.Defaults are used here.

Alt desc

  • Enter source code location.GitHub in this case.Can also select AWS CodeCommit if that is the case.

Alt desc

  • Create a build stage.

Alt desc

  • Enter build configuration details.

Alt desc

Alt desc

Alt desc

Alt desc

  • Enter deploy stage details.Deploy provider is AWS Beanstalk.Enter Beanstalk environment and application name to deploy to.

Alt desc

  • Review and create pipeline.

Alt desc

  • Pipeline runs after it's created.Anytime source code changes,pipeline is triggered automatically.

Alt desc

  • AWS S3 stores the build and deploy artifacts for this pipeline.

Alt desc

Alt desc

About

Demonstrates creation of a AWS CI CD pipeline using AWS CodeBuild and AWS CodePipeline for a Angular and Spring boot application on AWS Beanstalk.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published