Presentation Deck - Getting Started With DevOps On AWS
Presentation Deck - Getting Started With DevOps On AWS
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Agenda
• What is DevOps?
• Release Process
• What is CI/CD?
• Demo
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What is DevOps?
DevOps =
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What is DevOps?
DevOps = Culture + Practices + Tools
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What is DevOps?
DevOps = Culture + Practices + Tools
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What is DevOps?
DevOps = Culture + Practices + Tools
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What is DevOps?
DevOps = Culture + Practices + Tools
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.
A typical release process stages
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.
A typical release process stages
Source
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.
A typical release process stages
Source Build
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.
A typical release process stages
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.
A typical release process stages
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Common issues faced
• Merge conflicts
• Tightly coupled
changes
• Repository
unavailability
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Common issues faced
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Common issues faced
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Common issues faced
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Continuous integration goals
Continuous integration
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Continuous deployment goals
Continuous integration
Continuous deployment
AWS CodePipeline
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Code Services
Source
AWS CodeCommit
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS CodeCommit
Secure, scalable, and managed Git source control Git objects
in Amazon Simple
Storage Service
(Amazon S3)
Git push
AWS CodeCommit
Encryption keys
in AWS Key
Management Service
(KMS)
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Branching strategy: GitFlow workflow
• Easier to understand and
test
• Code review faster
• Backwards compatible
• GitFlow discipline
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Code Services
Build Test
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS CodeBuild
• Fully managed build service
• Isolated build containers for
consistent, immutable environment
• Docker and AWS Command Line
Interface (CLI) out of box
• Ability to customize build
environment
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Continuous integration workflow
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Code Services
Deploy
AWS CodeDeploy
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS CodeDeploy
• Automates code deployments
• Handles complexity of application
updates
• Avoid downtime during deployment
• Roll back automatically upon failure
• Limit “blast radius” with traffic control
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Choosing a deployment technique
Aim is to introduce the changes slowly
• Achieve zero downtime
• Deploy to only a few instances first
• Incrementally shift traffic to new version
• Bake and monitor performance before
committing
• Achieve fast rollback on failures
Deployment strategies
• Blue-Green
• Canary
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Blue-Green deployment
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Blue-Green deployment
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Blue-Green deployment
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Blue-Green deployment
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Blue-Green deployment
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Blue-Green deployment
Advantages
• Zero downtime
• Original environment is not impacted
• Quick and safe rollback
Disadvantages
• Added cost and time for creating new environment
• Operational overheads
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Canary deployment
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Canary deployment
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Canary deployment
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Canary deployment
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Canary deployment
Advantages
• Test new version with small amount of production traffic before committing
• Quick and safe rollback
• Zero downtime
Disadvantages
• Old version and new version should be compatible
• Added cost and time for creating cloned environment
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Continuous deployment workflow
Merge PR Hook
into trunk pull code
Developer
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Continuous deployment workflow
Merge PR Hook
into trunk pull code
Developer
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS CodePipeline
• Managed continuous delivery service
• Model and visualize release process
• Automated pipeline trigger on code
change
• Integrates with third-party tools
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS CodePipeline
Source Deploy-Staging
PullSource TestAPI
CodeCommit Runscope
QA-SignOff
Build Manual Approval
Deploy-Dev
DeployDev NotifyDevelopers
CodeDeploy Lambda Deploy-Prod
TriggerStaging Prod-ap-southeast
Lambda CodeDeploy
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Digital Training
Featured Courses
• AWS Cloud Practitioner Essentials (Second Edition)
Learn the fundamentals of the AWS Cloud and prepare for the AWS
Certified Cloud Practitioner exam.
• Amazon DynamoDB for Serverless Architectures
An introduction to Amazon DynamoDB and how it’s leveraged in
building a serverless architecture.
• AWS Security Fundamentals
Learn fundamental cloud computing and AWS security concepts,
including AWS access control and management, governance, logging,
Build cloud skills with and encryption methods.
550+ free digital training • Getting Started with Amazon Simple Storage Service (Amazon S3)
courses, or dive deep The course provides you with the knowledge to determine when to use
with classroom training Amazon S3 by reviewing typical use cases and understanding how the
service provides object storage for your applications.
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. aws.amazon.com/training
Thank you for attending AWS Builders Online Series
We hope you found it interesting! A kind reminder to complete the survey.
Let us know what you thought of today’s event and how we can improve the event
experience for you in the future.
[email protected]
twitter.com/AWSCloud
facebook.com/AmazonWebServices
youtube.com/user/AmazonWebServices
slideshare.net/AmazonWebServices
twitch.tv/aws
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Builders Online Series
Thank you
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.