Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Global Azure Austria 2023

Global Azure Austria 2023

Why is the usage of 'Infrastructure as Code' essential, if you would like to adopt a cloud-native approach?
This talk is about explaining several benefits and why you need to automate your cloud infrastructure for enabling a modern way of developing and hosting software applications in the cloud.
This session contains a live demonstration of how fast a resource such as an Azure Kubernetes Cluster can be provisioned using a Terraform configuration.

Patrick Koch

May 24, 2023
Tweet

More Decks by Patrick Koch

Other Decks in Programming

Transcript

  1. Patrick Koch AVL List GmbH (Headquarters) Public Benefits of using

    Infrastructure as Code for your Cloud-Native Approach
  2. Patrick Koch | | 12 May 2023 | / 3

    Public Who am I? @PK_Koch patkoch87 patrickkoch.dev Graz DevOps Engineer Patrick Koch Azure Hero Badge source: https://www.microsoft.com/skills/azureheroes Icon sources: https://icons8.de/ HashiCorp Ambassador Badge source: https://www.credly.com/badges/1e32182b-596a-4a88-9919- fc373358df69
  3. Patrick Koch | | 12 May 2023 | / 4

    Public Today’s Agenda 4 3 2 Brief overview about myself Introduction 1 What is Infrastructure as Code? …derived from a cloud migration journey The benefits Let‘s create a Kubernetes cluster Live demonstration 5 My derived key learnings Conclusion …and why I especially use Terraform
  4. Patrick Koch | | 12 May 2023 | / 6

    Public Definition of Infrastructure as Code “Infrastructure as Code (IaC) is the managing and provisioning of infrastructure through code instead of through manual processes” https://www.redhat.com/en/topics/automation/what-is- infrastructure-as-code-iac Gif source: Azure Portal
  5. Patrick Koch | | 12 May 2023 | / 7

    Public Provision/Manage resources using a Terraform configuration ACR icon source: https://learn.microsoft.com/en-us/azure/architecture/icons/
  6. Patrick Koch | | 12 May 2023 | / 8

    Public Provision/Manage resources using a Terraform configuration AKS icon source: https://learn.microsoft.com/en-us/azure/architecture/icons/
  7. Patrick Koch | | 12 May 2023 | / 9

    Public Why Terraform? ▪ Multiple providers ▪ Provision and manage the resources using their APIs Screenshot: https://registry.terraform.io/browse/providers
  8. Patrick Koch | | 12 May 2023 | / 10

    Public Why Terraform? ▪ Tracking and observing the infrastructure State File Plan State File Picture source: Azure Portal
  9. Patrick Koch | | 12 May 2023 | / 11

    Public Why Terraform? ▪ Declarative configuration files ACR, AKS icon source: https://learn.microsoft.com/en-us/azure/architecture/icons/
  10. Empower the developer • Developers are capable of provisioning the

    resources they need • Less dependency • Have fun with provisioning/destroying/changing the infrastructure AKS icon source: https://learn.microsoft.com/en-us/azure/architecture/icons/
  11. Patrick Koch | | 12 May 2023 | / 14

    Public Infrastructure can be version controlled • Version control the configurations → Git repository • Be able to reproduce specific versions of your infrastructure • Feel free to experiment Git icon source: https://git-scm.com/downloads/logos
  12. Patrick Koch | | 12 May 2023 | / 15

    Public Automation – Establish Pipelines Terraform Configurations Azure Azure DevOps Pipeline • Create Pipelines for conducting the Terraform commands • Controlled way of provisioning/destroying the resources • Everyone can trigger the pipeline
  13. Patrick Koch | | 12 May 2023 | / 16

    Public Automation – Establish Pipelines • Create Pipelines for conducting the Terraform commands • Controlled way of provisioning/destroying the resources • Everyone can trigger the pipeline Video source: Azure Portal
  14. Patrick Koch | | 12 May 2023 | / 17

    Public Decrease the costs • Provision when you need it, destroy it otherwise • Estimate costs upfront using dedicated tools
  15. Patrick Koch | | 12 May 2023 | / 18

    Public IaC as part of your product for the customer • Provide the customer the configurations • Reproduce the same environment for finding bugs Terraform icon: https://www.terraform.io/
  16. Patrick Koch | | 12 May 2023 | / 20

    Public Conclusion Empower the developer Reproducible environments Increase automation Save costs