September 21, 2018

AWS CI CD - 1st Workflow - Web Application Deployments


1st Workflow in AWS CI CD using AWS Developer Tools Lab Series will be  focusing on step by step instructions in deploying the pre-developed Java Web Application to a manually created EC2 instance using AWS CodeCommit, AWS CodeBuild, AWS CodeDeploy & AWS CodePipeline

Web Application Deployment

In this network diagram, Java Web Application is developed on-premise, committed to AWS CodeCommit using Git Bash and our CodePipeline has 3 stages
  • First stage in the pipeline is to pull the source code from the Java Web Application repository in CodeCommit and pass it on to AWS CodeBuild as an input artifact.
  • 2nd stage is Build where CodeBuild compiles the source code, packages and stores the artifact in S3; as well as triggers the Unit tests that are configured.
  • 3rd stage is Deploy where CodeDeploy fetches the artifact from S3 and deploys to one or more EC2 instances.
  • Please note that in this work-flow the deployment happens to the EC2 instances which was created earlier either through CLI, SDK or Console.
    And your website can be accessed using the EC2 Endpoint or the public IP address.
  • This example do not have ASG & ELB. If you place them behind ELB, then Endpoint can be used to access the web application.
  1. LAB 1: Prerequisites Setup
    1. Create IAM Group & User
    2. Create CloudWatch Log group named codedeploy_logs
    3. Create S3 Bucket named demo-4-codedeploy

      Cross-verify the configurations defined in the LAB 1 against the below mind-map.

  2. LAB 2: Setup Repository in AWS CodeCommit
    Cross-verify the configurations defined in the LAB 2 against the below mind-map.
  3. LAB 3: Setup a Build in AWS CodeBuild
    Cross-verify the configurations defined in the LAB 3 against the below mind-map.
  4. LAB 4: Deploy the artifact using AWS CodeDeploy
    Cross-verify the configurations defined in the LAB 4 against the below mind-map.
  5. LAB 5: Create a pipeline using AWS CodePipeline linking Repo from CodeCommit,
    Cross-verify the configurations defined in the LAB 5 against the below mind-map.
  6. View AWS CI CD - Application Deployments Workflow

No comments:

Post a Comment