Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Cloud DevOps - Infrastructure new era Part 1
Search
Spiros Economakis
December 17, 2020
0
23
Cloud DevOps - Infrastructure new era Part 1
A journey to migrate from CloudFormation to Terraform with zero downtime
Spiros Economakis
December 17, 2020
Tweet
Share
More Decks by Spiros Economakis
See All by Spiros Economakis
Cloud-First Culture: A Mindset Shift Across the Org
spirosoik
0
7
Empowering SRE teams and Incident Management with AI
spirosoik
0
7
Building a Platform with self-serve powers using ChatOps and Github Bots
spirosoik
0
71
Introduction to Chaos Engineering with Kubernetes
spirosoik
0
100
It’s about philosophy...culture of a good team leader...
spirosoik
0
38
GitOps CD for k8s
spirosoik
0
120
Effective developer experience with Kubernetes
spirosoik
0
48
Analytics in an Aspect Oriented manner V2.0
spirosoik
0
94
The testing practices of a Jedi
spirosoik
0
80
Featured
See All Featured
The Invisible Side of Design
smashingmag
297
50k
Keith and Marios Guide to Fast Websites
keithpitt
409
22k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
364
24k
Building Better People: How to give real-time feedback that sticks.
wjessup
364
19k
Making the Leap to Tech Lead
cromwellryan
133
8.9k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
109
49k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
329
21k
VelocityConf: Rendering Performance Case Studies
addyosmani
325
24k
How to Ace a Technical Interview
jacobian
276
23k
Unsuck your backbone
ammeep
668
57k
Designing the Hi-DPI Web
ddemaree
280
34k
Imperfection Machines: The Place of Print at Facebook
scottboms
264
13k
Transcript
Cloud DevOps Infrastructure new era Part 1
Goals
Goals • Simplify • Infrastructure as a code • Human
readable • Output of changes before apply • Automated CI/CD
Old era
High pace team Utilize the strengths of the team to
deliver faster
Tools • Github actions • AWS CodePipeline • AWS Codebuild
• AWS Cloudformation • AWS Lambda (status for PRs)
Bootstrap CI/CD Cloudformation Codepipeline Github Status
Infrastructure CI/CD
Problem - Complex
Problem - Hard to read (YAML)
Problem - Nested stacks spaghetti
Problem - No output of changes
New era
Learnings - Need to focus • Quality • Scalability •
Readability • Simplification • Easy to on-board other Ops people
High pace team Do it the right way
Tools • Handover to Christos K. • Github actions •
Terraform
Challenges • Import current state of infra • Delete cloudformation
stacks (still not solved)
Import State https://github.com/lensesio-dev/cloud-infra-terraform/blob/master/tf-state.sh
Review before apply
Review before apply
Testing • Test infrastructure as a code • Use gruntwork-io/terratest
Benefits • Remote state • Protect state with locks •
Keeping sensitive information off disk • Encrypted state • Output of changes before apply • Reusable terraform modules https://github.com/lensesio-dev/cloud-terraform-modules Infrastructure repo: https://github.com/lensesio-dev/cloud-infra-terraform
Dev Infrastructure
Prod Infrastructure
To be continued… Part 2 is coming
Thanks