You are on page 1of 22

Getting started with DevOps by implementing

IaC and Release Pipeline on AWS


Rio Astamal
Developer Advocate, Indonesia
Amazon Web Services

rioastamal rioastamal

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Key takeaways
Understand how DevOps enable you to improve development
velocity by implementing Infrastructure as Code with AWS Cloud
Development Kit (AWS CDK) and integration with CI/CD using
CDK Pipelines

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What we are going to deploy today

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Let’s talk about DevOps

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What is DevOps?

Culture

Tools Practices

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Teams that adopt modern software practices
are more agile and higher performing
Teams who automate software delivery
with continuous delivery:

DEPLOYMENT
FREQUENCY Weekly–monthly Hourly–daily

CHANGE
LEAD TIME 1–6 months 1–7 days

CHANGE
FAILURE RATE 46–60% 0%–15%

Source: 2019 DORA State of DevOps report

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
So why hasn’t everyone already moved to
DevOps?
Need to glue Lack
together too internal
many services expertise
Sift 2
Not enough 4
through all centralized
the vendors oversight

1 3

Too difficult to
get started

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Infrastructure as → is Code

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Treat infrastructure the same way developers
treat codes
1. Make infrastructure changes repeatable and predictable
2. Release infrastructure changes using the same tools as code changes
3. Replicate production environment in a staging environment to enable
continuous testing

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS CDK accelerates development teams

Familiar
Your language
Just classes and methods

Tool Support
Compatible with testing
frameworks you’re already using

Abstraction
Sane defaults
Reusable classes
In Preview

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Diagram architecture

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CI/CD foundations

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Release process stages

Source Build Test Deployment

• Check-in source • Compile code • Integration • Deploy to


code such as • Unit tests testing with application
.java files • Style checkers other systems environments
• Peer review new • Create container • Load testing • Monitor code in
code images and • UI testing production to
function • Security testing quickly detect
deployment errors
packages

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Release process stages

Source Build Test Deployment

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS CodePipeline

• Continuous delivery service for fast and reliable


application updates
• Model and visualize your software release process
• Builds, tests, and deploys your code every time
there is a code change
• Integrates with third-party tools and AWS

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS CodeBuild

• Each build runs in a new Docker container for a


consistent, immutable environment
• Docker and AWS CLI are installed in every official
CodeBuild image
• Provide custom build environments suited to your
needs through the use of Docker images

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Implement CI/CD with CDK Pipelines

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CI/CD for Multiple Env with Manual Approval

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Codes and Demos
https://github.com/donnieprakoso/demo-cdk

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Training and Certification
Get started with Free Digital Training for you and your team today

Access 500+ free digital courses with


AWS Skill Builder

Earn an industry-recognized credential:


AWS Certified Developer – Associate
AWS Certified DevOps – Professional

Achieve key milestones and plan your Create a self-paced learning roadmap
next steps with the AWS Modern AWS ramp-up guide - Developer
AWS ramp-up guide - DevOps
Application skills training

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Thank you for attending AWS Innovate
Modern Applications Edition
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.

aws-apj-marketing@amazon.com

twitter.com/AWSCloud

facebook.com/AmazonWebServices

youtube.com/user/AmazonWebServices

slideshare.net/AmazonWebServices

twitch.tv/aws

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Thank you!

© 2021,
2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.

You might also like