SlideShare a Scribd company logo
Everything as Code
alican.kustemur@gmail.com
linkedin.com/in/alicankustemur
medium.com/@alicankustemur
Infrastructre as Code with Terraform on AWS
Ali Can Kustemur
💻 DevOps Engineer
Agenda
• Why is Infrastructure as Code (IaC) ?
• What is IaC ?
• Problems we had before IaC ?
• Goals of IaC
• Configuration Management vs Orchestration
• Why & What is Terraform ?
• Demo on AWS
Why is Infrastructure as Code ?
Why is Infrastructure as Code ?
AWS EC2 Schema :
Why is Infrastructure as Code ?
Big Bang
Schema :
Why is Infrastructure as Code ?
Lovely
Code :
What is IaC ?
https://www.thoughtworks.com/insights/blog/infrastructure-code-reason-smile
What is IaC ?
• Infrastructure as Code, or programmable infrastructure,
means writing code to manage configurations and automate provisioning
of infrastructure in addition to deployments.
• The basic idea is that you treat your IT infrastructure as software. This
helps you to make changes to it rapidly and easily, at the same time safely
and reliably.
https://www.thoughtworks.com/insights/blog/infrastructure-code-reason-smile
What is IaC ?
• This allows people to apply software development tools such as version
control systems (VCS), automated testing libraries, and deployment
orchestration to manage infrastructure.
• It also opens the door to exploit development practices such as test-driven
development (TDD), continuous integration (CI), and continuous delivery
(CD).
https://www.thoughtworks.com/insights/blog/infrastructure-code-reason-smile
https://www.safaribooksonline.com/library/view/infrastructure-as-code/9781491924334/ch01.html
Problems we had before IAC ?
• Same Infrastructure on all environments
• Quick Deploy
• Versioning
• Immutable Infrastructure
https://www.thoughtworks.com/insights/blog/infrastructure-code-reason-smile
Goals of IaC
• IT infrastructure supports and enables change, rather than being an
obstacle or a constraint.
• Changes to the system are routine, without drama or stress for users or IT
staff.
• IT staff spends their time on valuable things that engage their abilities, not
on routine, repetitive tasks.
• Users are able to define, provision, and manage the resources they need,
without needing IT staff to do it for them.
https://www.safaribooksonline.com/library/view/infrastructure-as-code/9781491924334/ch01.html
Goals of IaC
• Teams are able to easily and quickly recover from failures, rather than
assuming failure can be completely prevented.
• Improvements are made continuously, rather than done through
expensive and risky “big bang” projects.
• Solutions to problems are proven through implementing, testing, and
measuring them, rather than by discussing them in meetings and
documents.
https://www.safaribooksonline.com/library/view/infrastructure-as-code/9781491924334/ch01.html
IaC is not just for Cloud
Infrastructure as code has come into its own with cloud, because it’s
difficult to manage servers in the cloud well without it. But the principles and
practices of infrastructure as code can be applied to infrastructure whether it
runs on cloud, virtualized systems, or even directly on physical hardware.
https://www.safaribooksonline.com/library/view/infrastructure-as-code/9781491924334/ch01.html
Be agile !
• To properly embrace IaC, you need three things: agile
development processes, a DevOps environment and the
tools to write the code.
• Agile is necessary because IaC is all about speed.
https://www.safaribooksonline.com/library/view/infrastructure-as-code/9781491924334/ch01.html
Be agile !
• Says Morris: " If you use automation tools but still
manage your infrastructure with the Iron Age approaches
to change management, you’re losing the benefit. IaC is
more reliable, particularly if you use Agile engineering
practices like test driven development, continuous
integration and continuous delivery. "
https://www.safaribooksonline.com/library/view/infrastructure-as-code/9781491924334/ch01.html
Infrastructure as Code with Terraform on AWS
Configuration Management
vs Orchestration
Why is Terraform ?
What is Terraform ?
• Write, Plan and Create Infrastructure as Code
• Execution Plans ( Actual – Desire State )
• Supports Multivendor ( AWS, Azure, GCP, OpenStack,Wmware etc.) +76
• Resource Graph
• Versioning ( Enterprise )
• Immutable Infrastructure
What is Terraform ?
https://www.slideshare.net/SushilKumar545/hashicorpterraformpackervaultby-sushil
Demo on AWS

More Related Content

PDF
APIdays Paris 2018 - A little less conversation, a little more action, Alain ...
PDF
Migrating to Continuous Delivery with TFS 2017 - Liviu Mandras-Iura
PPTX
Mule iON - OSS ESB to iPaaS
PPTX
Azure integration services from the IT Professional perspective
PPTX
Continous Integration for iOS Projects
PPTX
How to be a cloud architect v 0.3
PDF
WSO2Con EU 2016: How WSO2 Products Facilitate the Digital Economy in the Tel...
PDF
June 2021 Microsoft 365 Need to Know Webinar
APIdays Paris 2018 - A little less conversation, a little more action, Alain ...
Migrating to Continuous Delivery with TFS 2017 - Liviu Mandras-Iura
Mule iON - OSS ESB to iPaaS
Azure integration services from the IT Professional perspective
Continous Integration for iOS Projects
How to be a cloud architect v 0.3
WSO2Con EU 2016: How WSO2 Products Facilitate the Digital Economy in the Tel...
June 2021 Microsoft 365 Need to Know Webinar

What's hot (20)

PPTX
Webinar: Digital Transformation With Integration Platform as a Service (iPaaS)
PDF
How to Use iPaaS to Scale Your Business - Case Study
PDF
Will ServerLess kill containers and Operations
PPTX
Azure Dev/Test Labs
PDF
[WSO2Con EU 2017] Darwin Ate My App
PDF
WSO2Con EU 2016: Building Enterprise Apps Using WSO2 Platform
PDF
Using Machine Learning on K8s Logs to Find Root Cause Faster
PDF
TechEvent 2019: More Agile, More AI, More Cloud! Less Work?!; Oliver Dörr - T...
PDF
Pivotal Digital Transformation Forum: Cloud and Devops - The Reality
PDF
10 things you can do at the edge
PDF
AWS re:Invent "The secrets to building and delivering amazing apps at scale"
PPTX
Programatori cu capul in nori
PDF
Webinar: iPaaS in the Enterprise - What to Look for in a Cloud Integration Pl...
PDF
60 minutes in the cloud: Predictive analytics made easy
PDF
CloudBrew 2017 - Security + DevOps + Azure = Awesomeness
PPTX
ESB Extinction: Why On-Premise Integration Platforms Are an Endangered Specie
PDF
Real World Experiences with Pivotal Cloud Foundry
PDF
Integrating Security Controls into the Development and Delivery Pipeline
PPTX
The citizen integrator
PDF
Pivotal Digital Transformation Forum: Becoming a Data Driven Enterprise
Webinar: Digital Transformation With Integration Platform as a Service (iPaaS)
How to Use iPaaS to Scale Your Business - Case Study
Will ServerLess kill containers and Operations
Azure Dev/Test Labs
[WSO2Con EU 2017] Darwin Ate My App
WSO2Con EU 2016: Building Enterprise Apps Using WSO2 Platform
Using Machine Learning on K8s Logs to Find Root Cause Faster
TechEvent 2019: More Agile, More AI, More Cloud! Less Work?!; Oliver Dörr - T...
Pivotal Digital Transformation Forum: Cloud and Devops - The Reality
10 things you can do at the edge
AWS re:Invent "The secrets to building and delivering amazing apps at scale"
Programatori cu capul in nori
Webinar: iPaaS in the Enterprise - What to Look for in a Cloud Integration Pl...
60 minutes in the cloud: Predictive analytics made easy
CloudBrew 2017 - Security + DevOps + Azure = Awesomeness
ESB Extinction: Why On-Premise Integration Platforms Are an Endangered Specie
Real World Experiences with Pivotal Cloud Foundry
Integrating Security Controls into the Development and Delivery Pipeline
The citizen integrator
Pivotal Digital Transformation Forum: Becoming a Data Driven Enterprise
Ad

Similar to Infrastructure as Code with Terraform on AWS (20)

PPTX
Infrastructure as Code principles and practices
PDF
Infrastructure as Code & its Impact on DevOps
PPTX
Infrastructure as code
PDF
Infrastructure as Code
PDF
DevOps Online Training
PDF
Terraform 101: What's infrastructure as code?
PPTX
Infrastrucutre as Code
PPTX
Infrastructure as Code
PPTX
IaC (infrastructure as a code) basics Presentation
PDF
Getting Started with Infrastructure as Code (IaC)
PDF
Getting Started with Infrastructure as Code
PDF
Infrastructure as code
PDF
Infrastructure as Code with Ansible
PPTX
Cloud formation - Infrastructure as code.pptx
PDF
Creating AWS infrastructure using Terraform
PPTX
Infrastructure as Code (IaC): Introduction to scripted infrastructure
PDF
Infrastructure as Code & Terraform 101
PDF
Infrastructure-As-A/From-Code - An Introduction
PPTX
ntk2019_m-12.pptx
DOCX
Infrastructure as Code.docx
Infrastructure as Code principles and practices
Infrastructure as Code & its Impact on DevOps
Infrastructure as code
Infrastructure as Code
DevOps Online Training
Terraform 101: What's infrastructure as code?
Infrastrucutre as Code
Infrastructure as Code
IaC (infrastructure as a code) basics Presentation
Getting Started with Infrastructure as Code (IaC)
Getting Started with Infrastructure as Code
Infrastructure as code
Infrastructure as Code with Ansible
Cloud formation - Infrastructure as code.pptx
Creating AWS infrastructure using Terraform
Infrastructure as Code (IaC): Introduction to scripted infrastructure
Infrastructure as Code & Terraform 101
Infrastructure-As-A/From-Code - An Introduction
ntk2019_m-12.pptx
Infrastructure as Code.docx
Ad

Recently uploaded (20)

PDF
Encapsulation theory and applications.pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Machine learning based COVID-19 study performance prediction
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
Cloud computing and distributed systems.
PDF
Approach and Philosophy of On baking technology
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPT
Teaching material agriculture food technology
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Electronic commerce courselecture one. Pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Encapsulation theory and applications.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
NewMind AI Weekly Chronicles - August'25 Week I
Machine learning based COVID-19 study performance prediction
The Rise and Fall of 3GPP – Time for a Sabbatical?
Spectral efficient network and resource selection model in 5G networks
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Cloud computing and distributed systems.
Approach and Philosophy of On baking technology
Unlocking AI with Model Context Protocol (MCP)
Per capita expenditure prediction using model stacking based on satellite ima...
Teaching material agriculture food technology
Programs and apps: productivity, graphics, security and other tools
MIND Revenue Release Quarter 2 2025 Press Release
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Network Security Unit 5.pdf for BCA BBA.
Electronic commerce courselecture one. Pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...

Infrastructure as Code with Terraform on AWS

  • 2. Agenda • Why is Infrastructure as Code (IaC) ? • What is IaC ? • Problems we had before IaC ? • Goals of IaC • Configuration Management vs Orchestration • Why & What is Terraform ? • Demo on AWS
  • 4. Why is Infrastructure as Code ? AWS EC2 Schema :
  • 5. Why is Infrastructure as Code ? Big Bang Schema :
  • 6. Why is Infrastructure as Code ? Lovely Code :
  • 7. What is IaC ? https://www.thoughtworks.com/insights/blog/infrastructure-code-reason-smile
  • 8. What is IaC ? • Infrastructure as Code, or programmable infrastructure, means writing code to manage configurations and automate provisioning of infrastructure in addition to deployments. • The basic idea is that you treat your IT infrastructure as software. This helps you to make changes to it rapidly and easily, at the same time safely and reliably. https://www.thoughtworks.com/insights/blog/infrastructure-code-reason-smile
  • 9. What is IaC ? • This allows people to apply software development tools such as version control systems (VCS), automated testing libraries, and deployment orchestration to manage infrastructure. • It also opens the door to exploit development practices such as test-driven development (TDD), continuous integration (CI), and continuous delivery (CD). https://www.thoughtworks.com/insights/blog/infrastructure-code-reason-smile https://www.safaribooksonline.com/library/view/infrastructure-as-code/9781491924334/ch01.html
  • 10. Problems we had before IAC ? • Same Infrastructure on all environments • Quick Deploy • Versioning • Immutable Infrastructure https://www.thoughtworks.com/insights/blog/infrastructure-code-reason-smile
  • 11. Goals of IaC • IT infrastructure supports and enables change, rather than being an obstacle or a constraint. • Changes to the system are routine, without drama or stress for users or IT staff. • IT staff spends their time on valuable things that engage their abilities, not on routine, repetitive tasks. • Users are able to define, provision, and manage the resources they need, without needing IT staff to do it for them. https://www.safaribooksonline.com/library/view/infrastructure-as-code/9781491924334/ch01.html
  • 12. Goals of IaC • Teams are able to easily and quickly recover from failures, rather than assuming failure can be completely prevented. • Improvements are made continuously, rather than done through expensive and risky “big bang” projects. • Solutions to problems are proven through implementing, testing, and measuring them, rather than by discussing them in meetings and documents. https://www.safaribooksonline.com/library/view/infrastructure-as-code/9781491924334/ch01.html
  • 13. IaC is not just for Cloud Infrastructure as code has come into its own with cloud, because it’s difficult to manage servers in the cloud well without it. But the principles and practices of infrastructure as code can be applied to infrastructure whether it runs on cloud, virtualized systems, or even directly on physical hardware. https://www.safaribooksonline.com/library/view/infrastructure-as-code/9781491924334/ch01.html
  • 14. Be agile ! • To properly embrace IaC, you need three things: agile development processes, a DevOps environment and the tools to write the code. • Agile is necessary because IaC is all about speed. https://www.safaribooksonline.com/library/view/infrastructure-as-code/9781491924334/ch01.html
  • 15. Be agile ! • Says Morris: " If you use automation tools but still manage your infrastructure with the Iron Age approaches to change management, you’re losing the benefit. IaC is more reliable, particularly if you use Agile engineering practices like test driven development, continuous integration and continuous delivery. " https://www.safaribooksonline.com/library/view/infrastructure-as-code/9781491924334/ch01.html
  • 19. What is Terraform ? • Write, Plan and Create Infrastructure as Code • Execution Plans ( Actual – Desire State ) • Supports Multivendor ( AWS, Azure, GCP, OpenStack,Wmware etc.) +76 • Resource Graph • Versioning ( Enterprise ) • Immutable Infrastructure
  • 20. What is Terraform ? https://www.slideshare.net/SushilKumar545/hashicorpterraformpackervaultby-sushil

Editor's Notes

  • #4: ÖNCE ALTYAPI OLARAK KOD'A NEDEN İHTİYAÇ DUYDUK. BUNDAN BAHSEDELİM. DİYELİM Kİ ŞİRKETİNİZDE Kİ UYGULAMALARI SAAS OLARAK SAĞLAMAK İSTİYORSUNUZ.
  • #5: EC2 İÇİN: - SECURITY GROUP ( FIREWALL ) - STORAGE İÇİN EBS VOLUME - DEFAULT VPC - AVAILABILITY ZONE - SSH PRIVATE KEY
  • #6: İŞTE BU YAPIYI MANUEL OLARAK YÖNETMENİZ OLDUKÇA ZOR VE STRESLİ OLACAKTIR. BİRDEN FAZLA VPC, AVAILABILITY ZONE, LBLER, PUBLIC VE PRIVATE SUBNETLER, SG RULES, INTERNET VE NAT GATEWAYLER
  • #7: TERRAFORM KODU.
  • #8: KIEF MORRIS DER KI: ALTYAPIYI KOD OLARAK ETKİNLEŞTİRME FİKRİ, YAZILIMI ÇALIŞTIRMAK İÇİN KULLANILAN SİSTEM VE AYGITLARIN KENDİLERİ GİBİ YANİ BİR YAZILIM GİBİ ELE ALINABİLMESİDİR.
  • #18: ÖNCE ALTYAPI OLARAK KOD'A NEDEN İHTİYAÇ DUYDUK. BUNDAN BAHSEDELİM. DİYELİM Kİ ŞİRKETİNİZDE Kİ UYGULAMALARI SAAS OLARAK SAĞLAMAK İSTİYORSUNUZ.
  • #19: ÖNCE ALTYAPI OLARAK KOD'A NEDEN İHTİYAÇ DUYDUK. BUNDAN BAHSEDELİM. DİYELİM Kİ ŞİRKETİNİZDE Kİ UYGULAMALARI SAAS OLARAK SAĞLAMAK İSTİYORSUNUZ.