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
21
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
Building a Platform with self-serve powers using ChatOps and Github Bots
spirosoik
0
31
Introduction to Chaos Engineering with Kubernetes
spirosoik
0
89
It’s about philosophy...culture of a good team leader...
spirosoik
0
33
GitOps CD for k8s
spirosoik
0
99
Effective developer experience with Kubernetes
spirosoik
0
46
Analytics in an Aspect Oriented manner V2.0
spirosoik
0
80
The testing practices of a Jedi
spirosoik
0
69
Kotlin for Android
spirosoik
0
45
Analytics in an Aspect Oriented manner
spirosoik
0
110
Featured
See All Featured
Designing Dashboards & Data Visualisations in Web Apps
destraynor
226
51k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
123
39k
Happy Clients
brianwarren
92
6.4k
Product Roadmaps are Hard
iamctodd
45
9.7k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
275
13k
What's new in Ruby 2.0
geeforr
337
31k
Code Reviewing Like a Champion
maltzj
515
39k
Writing Fast Ruby
sferik
622
60k
Designing for Performance
lara
601
67k
Large-scale JavaScript Application Architecture
addyosmani
504
110k
StorybookのUI Testing Handbookを読んだ
zakiyama
13
4.6k
Building a Modern Day E-commerce SEO Strategy
aleyda
21
6.4k
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