From a1aba25101eb35ec892f69faa51303e4683c217d Mon Sep 17 00:00:00 2001 From: "Aaron N. Brock" Date: Tue, 28 Apr 2020 10:34:31 -0400 Subject: [PATCH] Update README.md --- README.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 134d382..61178a6 100644 --- a/README.md +++ b/README.md @@ -3,17 +3,19 @@ This repo include the followings: * A cloudformation template that creates an pair of Elastic Beanstalk application and environment. The pair is to be used as the deployment target of a codepipeline. * A Cloudformation template that creates an AWS codepipeline. The pipeline gets its source from a github repo, builds and tests using an AWS codebuild project, and deploys the application to an Elastic Beanstalk environment. -# Features of the Elastic Beanstalk environment: +## Features of the Elastic Beanstalk environment: * An ELB fronts an autoscaling group. * The ELB logs access to an S3 bucket. * The TargetGroup response time triggers scaling action of the auto scaling group. * Instance logs are streams to CloudWatch log. -# Features of the codepipeline: +## Features of the codepipeline: * Test the application in a codebuild container. * Deploy application only tests passes. -# Create the elastic beanstalk application and environment, and get the application and environment Ids +## Steps + +### Step 1: Create the elastic beanstalk application and environment, and get the application and environment Ids ``` aws cloudformation deploy --stack-name --template-file elasticBeanStalk_setup.yml \ --capabilities CAPABILITY_IAM \ @@ -25,7 +27,7 @@ aws cloudformation deploy --stack-name --template aws cloudformation describe-stacks --stack-name | jq ".Stacks[0].Outputs[]" ``` -# Create the codepipeline +### Step 2: Create the codepipeline ``` aws cloudformation deploy --stack-name --template-file codepipeline_template.yml \ --capabilities CAPABILITY_IAM \ @@ -40,8 +42,8 @@ aws cloudformation deploy --stack-name --template-file CloudWatchLogStream= ``` -# Test deployed application +### Step 3: Test deployed application After pipeline creation, there will be an initial release. Open the URL for the Elastic Beanstalk environment to verify that the application is running. -# Update the application +### (Optional) Step 4: Update the application Push a change to the application repo branch, the codepipeline should execute.