infrastrucutre as code
TRANSCRIPT
![Page 1: Infrastrucutre As Code](https://reader035.vdocuments.mx/reader035/viewer/2022062900/58f365141a28ab54738b45bd/html5/thumbnails/1.jpg)
Infrastructure as codeVenu Murthy
Adding smartness to your infrastructure now!
![Page 2: Infrastrucutre As Code](https://reader035.vdocuments.mx/reader035/viewer/2022062900/58f365141a28ab54738b45bd/html5/thumbnails/2.jpg)
Who am ihttps://github.com/openstack/ec2-driver
2
![Page 3: Infrastrucutre As Code](https://reader035.vdocuments.mx/reader035/viewer/2022062900/58f365141a28ab54738b45bd/html5/thumbnails/3.jpg)
What is infra as code3
![Page 4: Infrastrucutre As Code](https://reader035.vdocuments.mx/reader035/viewer/2022062900/58f365141a28ab54738b45bd/html5/thumbnails/4.jpg)
But why?Success is when you design for failure
4
![Page 5: Infrastrucutre As Code](https://reader035.vdocuments.mx/reader035/viewer/2022062900/58f365141a28ab54738b45bd/html5/thumbnails/5.jpg)
Why is this important for you!
5
![Page 6: Infrastrucutre As Code](https://reader035.vdocuments.mx/reader035/viewer/2022062900/58f365141a28ab54738b45bd/html5/thumbnails/6.jpg)
Why is this important for you!
6
![Page 7: Infrastrucutre As Code](https://reader035.vdocuments.mx/reader035/viewer/2022062900/58f365141a28ab54738b45bd/html5/thumbnails/7.jpg)
77
“Oh! But it works on my laptop!”
Why is this important for you!
![Page 8: Infrastrucutre As Code](https://reader035.vdocuments.mx/reader035/viewer/2022062900/58f365141a28ab54738b45bd/html5/thumbnails/8.jpg)
8
![Page 9: Infrastrucutre As Code](https://reader035.vdocuments.mx/reader035/viewer/2022062900/58f365141a28ab54738b45bd/html5/thumbnails/9.jpg)
Build and operate infra as code
■Faster Release■Consistent Environments■Security■Structure■….
9
![Page 10: Infrastrucutre As Code](https://reader035.vdocuments.mx/reader035/viewer/2022062900/58f365141a28ab54738b45bd/html5/thumbnails/10.jpg)
1010
Infrastructure as code is techniques, practices, and tools from software development applied to creating reusable, maintainable, extensible, and testable infrastructure.
Definition
![Page 11: Infrastrucutre As Code](https://reader035.vdocuments.mx/reader035/viewer/2022062900/58f365141a28ab54738b45bd/html5/thumbnails/11.jpg)
11
![Page 12: Infrastrucutre As Code](https://reader035.vdocuments.mx/reader035/viewer/2022062900/58f365141a28ab54738b45bd/html5/thumbnails/12.jpg)
12
Provisioning infrastructure
resources
Installing Operating Systemon both
Creating VMs
to be web server
to be Database Server
Configures the server Ready the App for
deployment
Fetch repo
build
Run Unit& Functional tests
deploy
Smoke test
![Page 13: Infrastrucutre As Code](https://reader035.vdocuments.mx/reader035/viewer/2022062900/58f365141a28ab54738b45bd/html5/thumbnails/13.jpg)
This is how easy it should be to define an environment
machines:
db:
mysql_5.0.27
www:
ruby19
passenger
nginx
network:
domain: qa1.example.com
13
Human readable
&
Easy to define
![Page 14: Infrastrucutre As Code](https://reader035.vdocuments.mx/reader035/viewer/2022062900/58f365141a28ab54738b45bd/html5/thumbnails/14.jpg)
This is how easy it should be to define an environment
machines:
db:
mysql_5.0.28
www:
ruby19
passenger
nginx
network:
domain: qa1.example.com
14
Human readable
&
Easy to define
![Page 15: Infrastrucutre As Code](https://reader035.vdocuments.mx/reader035/viewer/2022062900/58f365141a28ab54738b45bd/html5/thumbnails/15.jpg)
15
Mitigating the risks by providing
15
Consistent Environmentsthroughout the software dev. process from Dev’s laptop up to Production
Phoenix Environments Providing resilient, fault tolerant Environments which can bring up your infrastructure in one click
15
![Page 16: Infrastrucutre As Code](https://reader035.vdocuments.mx/reader035/viewer/2022062900/58f365141a28ab54738b45bd/html5/thumbnails/16.jpg)
Infrastructure as code – IMMUTABLE!
• Extend the advantages of version control from your app to Infrastructure.
•Auto deployment will cut the repetitive and manual process of configuring all infrastructure resources.
• Get a unified view simplifying the monitoring and management of all resources.
16
“Welcome to the age of Software Defined Economy.”
![Page 17: Infrastrucutre As Code](https://reader035.vdocuments.mx/reader035/viewer/2022062900/58f365141a28ab54738b45bd/html5/thumbnails/17.jpg)
Ansible
Provisioning
Deployment
Amazon EC2
Instance AMI
![Page 18: Infrastrucutre As Code](https://reader035.vdocuments.mx/reader035/viewer/2022062900/58f365141a28ab54738b45bd/html5/thumbnails/18.jpg)
Summary
App Infra
Source code YAML/JSON
InterpreterAWS/
OpenStack Service API
Desired App State
Desired infra State