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

Infrastructure as Code: Azure-Umgebungen mit Te...

Thorsten Hans
September 25, 2019

Infrastructure as Code: Azure-Umgebungen mit Terraform

Slides from my talk at BASTA! 2019 in Mainz

Terraform von HashiCorp erlaubt es Ihnen, Ihre Infrastruktur auszuprogrammieren. Indem Sie Ihre gesamte Infrastruktur in Code ausdrücken, können Sie neue Umgebungen in nur wenigen Minuten erstellen, anpassen oder zerstören. Infrastructure as Code (IaC) bietet Vorteile wie transparentes Wissen, Nachvollziehbarkeit, Testbarkeit, Dokumentation und natürlich Automatisierung. In diesem Vortrag von Thorsten Hans lernen Sie Terraform an praktischer Beispiele kennen. Kommen Sie in den Genuss von Terraforms Ausführungsplänen, mit denen Sie jede Anpassung an der gewünschten Umgebung vor der tatsächlichen Anwendung ausprobieren und analysieren können. Lernen Sie Ihre Infrastruktur zu programmieren, um unabhängige Umgebungen wie Development, Staging und Production im Handumdrehen zu verwalten.

Thorsten Hans

September 25, 2019
Tweet

More Decks by Thorsten Hans

Other Decks in Technology

Transcript

  1. 1. What is HashiCorp Terraform 2. Let’s create a Azure

    Deployment, live! 3. References Talking Points
  2. Terraform Write, Plan, and Create 1 Infrastructure as Code 2

    Preview Changes before applying 3 Build reproducible infrastructure
  3. Infrastructure as Code • Can be stored in a version

    control system (git) • Change History / Change Tracking • Collaboration • Better documentation • Eliminates the Truck Factor (or Single Point of Failure) • Predictable deployments • TDD deployments are possible Terraform - Write
  4. Preview Changes before applying • Execution plan will tell you

    which parts of the environment will be • Created • Modified • Deleted • Before making any changes to a environment • Think of git status Terraform - Plan
  5. Build reproducible infrastructure • One Terraform script can be applied

    million times • Configurable environments • Variables • Interpolation • Built-in functions Terraform - Create
  6. HashiCorp Configuration Language • Declarative language used to code your

    infrastructure • Based on JSON but more focused • Simple but powerful type system • Strings, Maps, Lists, Booleans* • One language used for all targets • Azure, Azure Stack, VMWare, GCP, AWS, … Meet the HCL
  7. Essential Features • Modules • https://thns.io/2R73oIQ • Workspaces • https://thns.io/2OZMs4Y

    • Terraform State • https://thns.io/2AftGS2 • Backends • https://thns.io/2DFyNOy Terraform Features
  8. Online and offline resources • Terraform Best Practices • https://thns.io/2P0mb6z

    • HashiCorp Youtube Channel • https://thns.io/2TBycmB • The Terraform Book • https://thns.io/2TDMCCE • Terraform: Up and Running • https://thns.io/2QdJSNz Terraform Resources
  9. Q&A If you’ve further questions later on: shoot me a

    mail at [email protected] / [email protected] or tweet at @ThorstenHans slides at https://thns.io/slides