Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
AWS Automation Cookbook

You're reading from   AWS Automation Cookbook Continuous Integration and Continuous Deployment using AWS services

Arrow left icon
Product type Paperback
Published in Nov 2017
Publisher Packt
ISBN-13 9781788394925
Length 388 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
 Swaraj Swaraj
Author Profile Icon Swaraj
Swaraj
Arrow right icon
View More author details
Toc

Table of Contents (19) Chapters Close

Title Page
Credits
About the Author
Acknowledgments
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
1. Using AWS CodeCommit FREE CHAPTER 2. Building an Application using CodeBuild 3. Deploying Application using CodeDeploy & CodePipeline 4. Building Scalable and Fault-Tolerant CI/CD Pipeline 5. Understanding Microservices and ECS 6. Continuous Deployment to ECS Using Developer Tools and CloudFormation 7. IaC Using CloudFormation and Ansible 8. Automating AWS Resource Control Using AWS Lambda 9. Microservice Applications in Kubernetes Using Jenkins Pipeline 2.0 10. Best Practices and Troubleshooting Tips Index

CI/CD pipeline workflow


This recipe will cover all the prerequisites and workflow of the pipeline that we will be implementing.

Getting ready

To that end, we’re going to use:

  • AWS CodeCommit as application Git repository to automate the code push process
  • AWS S3 as an artifact storage tool
  • AWS Auto Scaling 
  • AWS CodeDeploy as the CD tool
  • Jenkins as the CI tool

How to do it...

Now, let’s walk through the flow, how it’s going to work, and what the advantages are before we implement it all. When a new code is pushed to a particular GIT repository/AWS CodeCommit branch, then following steps will take place:

  1. Jenkins will first build and then run the test cases (Jenkins listening to a particular branch through Git webhooks).
  2. If the test cases fail, it will notify us and stop the further after-build actions.
  3. If the test cases are successful, it will go to post-build action.

Note

In our case, the application is ready to be deployed and is merged with the master branch of the application. So, Jenkins will pull the...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime
Visually different images