AWS Elastic Beanstalk Examples.
This repo is a demonstration of Continuous Delivery of a static website to Elastic Beanstalk via CodePipeline, CodeCommit, CodeBuild, and Elastic Beanstalk. Ensure you've configured the Prerequisites before launching the stack below.
- Download html.zip from GitHub
- Create a new S3 bucket and make note of the unique bucketname name you created
- When launching the stack, enter the name of the S3 Bucket you created in the
S3BucketCloudFormation parameter
- Once the CloudFormation stack is successful, select the checkbox next to the stack and click the Outputs tab.
- From Outputs, click on the PipelineUrl output. The Source action will be in a failed state.
- From the CodePipeline Source action, click on the CodeCommit provider and copy the git clone statement provided by CodeCommit
- Paste the command in your Terminal
- From this folder, copy all of its contents to your locally cloned Git repo
- From your Terminal, type
git add . - From your Terminal, type
git commit -am "add new files" - From your Terminal, type
git push - Go back to your pipeline in CodePipeline and see the changes flow through the pipeline
- Once the pipeline is complete, go to your CloudFormation Outputs and click on the SiteUrl Output
