SlideShare a Scribd company logo
INFRASTRUCTURE
AS CODE
@cfgmgmtcamp
kief@thoughtworks.com
Cloud Practice Lead (UK)
DevOps, Continuous Delivery, Agile Ops
Twitter: @kief
Book: http://oreil.ly/1JKIBVe
Site: http://infrastructure-as-code.com
February 2017
SPEED
RISK
FASTER IS
SAFER
http://bit.ly/2cQQSOk
RAPID
RESPONSIBLE
INFRASTRUCTURE
AS CODE
Applying tools and practices from
software engineering to managing
infrastructure.
DEFINE SYSTEMS AS CODE
System design is:
▪ Reusable
▪ Consistent
▪ Visible
▪ Versioned
DYNAMIC INFRASTRUCTURE
PLATFORMS
Compute Storage
Network
DYNAMIC INFRASTRUCTURE
PLATFORMS
Cloud (IaaS)
Virtual
Physical
Compute Storage
Network
PROGRAMMABLE,
ON-DEMAND
API
Cloud and automation
AWESOME!
Oh, no!
SERVER SPRAWL!
CONFIGURATION
DRIFTServers start
out identical
But changes
accumulate
over time
AUTOMATION FEAR
CYCLE
AUTOMATION LAG
The longer it’s been since an automated
process has run in the same context …
… the more work is needed to run it again
Apply small changes frequently
rather than large batches infrequently
CONTINUOUSLY SYNCHRONIZE
OR CONTINUOUSLY REBUILD
DEVOOPS
How can we avoid damage from
automated mistakes?
AUTOMATICALLY TEST EVERY CHANGE
PROMOTE CHANGES
TEST
SIT
PROD
QA
BUILD COMPLIANCE INTO THE PIPELINE
Humans focus on the
implementation of the
pipeline and audit trailsUse the pipeline to continuously
validate operational requirements and
compliance, and to implement controls
INFRASTRUCTURE
DESIGN PATTERNS
Organizing code for dynamic
infrastructure
One definition,
multiple
environments
our-project/main.tf
staging
production
INFRASTRUCTURE
DESIGN PRINCIPLE
Structure your code to minimize risks for
making (small, frequent) changes
our-project/staging/main.tf
staging
production
our-project/production/main.tf
One definition
per environment
our-project/main.tf
staging
production
development
Single
definition
template,
promoted
across
environments
How do we build and test
this stuff?
It runs sooooo sloooooow! L
Nginx Cookbook
ORGANIZE INFRASTRUCTURE INTO
SEPARATELY TESTABLE PIECES
Tomcat Cookbook
JDK Cookbook
MyApp Vhost Cookbook
MyApp.war
Application
Server
Web
Server
FAN-IN PIPELINES
TEST
TOMCAT
COOKBOOK
TEST MYAPP
CODE
TEST JDK
COOKBOOK
TEST APP
SERVER
TEST MYAPP
DEPLOYMENT
Test components
individually
Cumulatively integrate and
test components together
DESIGNING FOR CHANGE
Cope with growth, evolving
requirements, expanding teams
DESIGN TO ENABLE FREQUENT
CHANGES
Split infrastructure
according to the
scope of typical
changes
Minimize the risk of
changes by limiting
the blast radius
Keep infrastructure
units loosely
coupled
ALIGN INFRASTRUCTURE DESIGN WITH
ORGANIZATION STRUCTURE
WHERE
SHOULD WE
SPLIT?
WHERE
SHOULD WE
SPLIT?
Split
infrastructure in
ways that
reduce the
friction for
making changes
SHARING
How can teams share their stuff?
LIBRARY PATTERN FOR INFRA
Tested server
images
BUILD TEST
BUILD TEST PROD
BUILD TEST PROD
Server image pipeline
Application environment pipelines
DECOUPLED CHANGE PIPELINES
Application A with its environment
TESTBUILD
Application B
TESTBUILD
Application C
TESTBUILD
QA PROD
QA PROD
QA PROD
HANDLING DEPENDENCIES
TESTBUILD QA PROD
TESTBUILD QA PROD
Self-service
test instances
Consumer
Driven Contract
(CDC) Tests
Mocks,
stubs, and
fakes
CYCLE TIME
Measure and optimize the elapsed
time from identifying a need to
satisfying it
SOME ACTIVITIES TO
MEASURE
Rebuild (Recover)
New environment
Update existing environments
Introducing a new tech stack
SOME OTHER BOOKS
Book: http://oreil.ly/1JKIBVe
Site: http://infrastructure-as-code.com
Twitter: @kief
kief@thoughtworks.com
Cloud Practice Lead (UK)
DevOps, Continuous Delivery, Agile Ops

More Related Content

What's hot (6)

PDF
Introduction to Infrastructure as Code & Automation / Introduction to Chef
All Things Open
 
PPTX
Rik Hepworth - ARM Yourself for Effective Azure Provisioning
WinOps Conf
 
PDF
Webinar: Continuous Deployment with MongoDB at Kitchensurfing
MongoDB
 
PPTX
Alex Magnay - Azure Infrastructure as Code with Hashicorp Terraform
WinOps Conf
 
PPTX
Pipelining DevOps with Jenkins and AWS
Jimmy Ray
 
PDF
12 Ways to Supercharge Your Connect Add-on
Atlassian
 
Introduction to Infrastructure as Code & Automation / Introduction to Chef
All Things Open
 
Rik Hepworth - ARM Yourself for Effective Azure Provisioning
WinOps Conf
 
Webinar: Continuous Deployment with MongoDB at Kitchensurfing
MongoDB
 
Alex Magnay - Azure Infrastructure as Code with Hashicorp Terraform
WinOps Conf
 
Pipelining DevOps with Jenkins and AWS
Jimmy Ray
 
12 Ways to Supercharge Your Connect Add-on
Atlassian
 

Viewers also liked (8)

ODP
Continuous Delivery of Puppet Manifests
Kris Buytaert
 
PDF
The Road to Continuous Delivery
Tommy Tynjä
 
PDF
Continuous Delivery of Microservices
Tommy Tynjä
 
ODP
Looking back at 6.5 years of #devopsdays
Kris Buytaert
 
PPTX
Infrastructure as Code for Network
Damien Garros
 
PDF
Infrastructure as code
Axel Quack
 
PPTX
Continuous Delivery and Infrastructure as Code
Sascha Möllering
 
PDF
Continuous Delivery at Netflix, and beyond
Mike McGarr
 
Continuous Delivery of Puppet Manifests
Kris Buytaert
 
The Road to Continuous Delivery
Tommy Tynjä
 
Continuous Delivery of Microservices
Tommy Tynjä
 
Looking back at 6.5 years of #devopsdays
Kris Buytaert
 
Infrastructure as Code for Network
Damien Garros
 
Infrastructure as code
Axel Quack
 
Continuous Delivery and Infrastructure as Code
Sascha Möllering
 
Continuous Delivery at Netflix, and beyond
Mike McGarr
 
Ad

Similar to Implementing Infrastructure as Code ConfigMgtCamp 2017 (20)

PPTX
Infrastructure as Code
Surjeet Singh
 
PPTX
Automated Infrastructure Testing
Ranjib Dey
 
PPTX
Automated infrastructure testing - by Ranjib Dey
bhumika2108
 
PDF
Infrastructure as code managing servers in the cloud Morris 2024 scribd download
borrosmartdf
 
PDF
Infrastructure as Code 101: Steve Tegeler + Nathan Ness, VMware
OpenStack
 
PPTX
Infrastrucutre as Code
Harmeet Singh
 
PDF
Infrastructure as Code
Leandro Rosa
 
PDF
Scalable Infrastructure - DevOpsDays London 2022 - Kief Morris.pdf
Kief Morris
 
PDF
Infrastructure as code managing servers in the cloud Morris
sahfthr3687
 
PDF
Building Evolvable Infrastructure
kiefdotcom
 
PPTX
Testing for infra code using test-kitchen,docker,chef
kamalikamj
 
PDF
Infrastructure as code managing servers in the cloud Morris
habanbrino4l
 
PDF
Infrastructure as code
Denis - Florin Rendler
 
PDF
Infrastructure as Code
Prasant Kumar
 
PPTX
Infrastructure as code
Victor Silva
 
PPTX
How to Architect AWS for Mission-Critical Applications
LogicworksNYC
 
PDF
Patterns And Practices For Infrastructure As Code With Examples In Python And...
gbartrilar
 
PDF
Why modern cloud infrastructure require automation
Gerald Crescione
 
PPTX
Test Driven Infrastructure with Serverspec and KitchenCI
Adedayo Akinpelu
 
PPTX
Infrastructure as Code - Getting Started, Concepts & Tools
Lior Kamrat
 
Infrastructure as Code
Surjeet Singh
 
Automated Infrastructure Testing
Ranjib Dey
 
Automated infrastructure testing - by Ranjib Dey
bhumika2108
 
Infrastructure as code managing servers in the cloud Morris 2024 scribd download
borrosmartdf
 
Infrastructure as Code 101: Steve Tegeler + Nathan Ness, VMware
OpenStack
 
Infrastrucutre as Code
Harmeet Singh
 
Infrastructure as Code
Leandro Rosa
 
Scalable Infrastructure - DevOpsDays London 2022 - Kief Morris.pdf
Kief Morris
 
Infrastructure as code managing servers in the cloud Morris
sahfthr3687
 
Building Evolvable Infrastructure
kiefdotcom
 
Testing for infra code using test-kitchen,docker,chef
kamalikamj
 
Infrastructure as code managing servers in the cloud Morris
habanbrino4l
 
Infrastructure as code
Denis - Florin Rendler
 
Infrastructure as Code
Prasant Kumar
 
Infrastructure as code
Victor Silva
 
How to Architect AWS for Mission-Critical Applications
LogicworksNYC
 
Patterns And Practices For Infrastructure As Code With Examples In Python And...
gbartrilar
 
Why modern cloud infrastructure require automation
Gerald Crescione
 
Test Driven Infrastructure with Serverspec and KitchenCI
Adedayo Akinpelu
 
Infrastructure as Code - Getting Started, Concepts & Tools
Lior Kamrat
 
Ad

Recently uploaded (20)

PDF
The 5 Reasons for IT Maintenance - Arna Softech
Arna Softech
 
PDF
Adobe Premiere Pro Crack / Full Version / Free Download
hashhshs786
 
PPTX
Finding Your License Details in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PDF
TheFutureIsDynamic-BoxLang witch Luis Majano.pdf
Ortus Solutions, Corp
 
PDF
Add Background Images to Charts in IBM SPSS Statistics Version 31.pdf
Version 1 Analytics
 
PDF
유니티에서 Burst Compiler+ThreadedJobs+SIMD 적용사례
Seongdae Kim
 
PPTX
Homogeneity of Variance Test Options IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PPTX
Help for Correlations in IBM SPSS Statistics.pptx
Version 1 Analytics
 
PPTX
Coefficient of Variance in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PPTX
In From the Cold: Open Source as Part of Mainstream Software Asset Management
Shane Coughlan
 
PDF
4K Video Downloader Plus Pro Crack for MacOS New Download 2025
bashirkhan333g
 
PDF
NEW-Viral>Wondershare Filmora 14.5.18.12900 Crack Free
sherryg1122g
 
PPTX
Comprehensive Risk Assessment Module for Smarter Risk Management
EHA Soft Solutions
 
PDF
Open Chain Q2 Steering Committee Meeting - 2025-06-25
Shane Coughlan
 
PDF
Digger Solo: Semantic search and maps for your local files
seanpedersen96
 
PPTX
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 
PPTX
OpenChain @ OSS NA - In From the Cold: Open Source as Part of Mainstream Soft...
Shane Coughlan
 
PDF
Download Canva Pro 2025 PC Crack Full Latest Version
bashirkhan333g
 
PPTX
Milwaukee Marketo User Group - Summer Road Trip: Mapping and Personalizing Yo...
bbedford2
 
PPTX
ChiSquare Procedure in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
The 5 Reasons for IT Maintenance - Arna Softech
Arna Softech
 
Adobe Premiere Pro Crack / Full Version / Free Download
hashhshs786
 
Finding Your License Details in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
TheFutureIsDynamic-BoxLang witch Luis Majano.pdf
Ortus Solutions, Corp
 
Add Background Images to Charts in IBM SPSS Statistics Version 31.pdf
Version 1 Analytics
 
유니티에서 Burst Compiler+ThreadedJobs+SIMD 적용사례
Seongdae Kim
 
Homogeneity of Variance Test Options IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
Help for Correlations in IBM SPSS Statistics.pptx
Version 1 Analytics
 
Coefficient of Variance in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
In From the Cold: Open Source as Part of Mainstream Software Asset Management
Shane Coughlan
 
4K Video Downloader Plus Pro Crack for MacOS New Download 2025
bashirkhan333g
 
NEW-Viral>Wondershare Filmora 14.5.18.12900 Crack Free
sherryg1122g
 
Comprehensive Risk Assessment Module for Smarter Risk Management
EHA Soft Solutions
 
Open Chain Q2 Steering Committee Meeting - 2025-06-25
Shane Coughlan
 
Digger Solo: Semantic search and maps for your local files
seanpedersen96
 
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 
OpenChain @ OSS NA - In From the Cold: Open Source as Part of Mainstream Soft...
Shane Coughlan
 
Download Canva Pro 2025 PC Crack Full Latest Version
bashirkhan333g
 
Milwaukee Marketo User Group - Summer Road Trip: Mapping and Personalizing Yo...
bbedford2
 
ChiSquare Procedure in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 

Implementing Infrastructure as Code ConfigMgtCamp 2017