Terraform cookbook provision, run, and scale cloud architecture with real-world examples using terraform

HashiCorp Configuration Language (HCL) has changed how we define and provision data center infrastructure with the launch of Terraform, a top-tier product for building Infrastructure as Code (IaC). Terraform Cookbook shows you how to leverage Terraform to manage complex infrastructure with ease. Thi...

Descripción completa

Detalles Bibliográficos
Otros Autores: Krief, Mikael, author (author), Dadgar, Armon, author
Formato: Libro electrónico
Idioma:Inglés
Publicado: Birmingham, England : Packt Publishing Ltd [2023]
Edición:Second edition
Colección:Expert insight.
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009764837406719
Tabla de Contenidos:
  • Cover
  • Copyright
  • Contributors
  • Table of Contents
  • Preface
  • Chapter 1: Setting Up the Terraform Environment
  • Technical requirements
  • Overviewing Terraform best practices
  • Downloading and installing Terraform on Windows manually
  • Getting ready
  • How to do it…
  • How it works…
  • Installing Terraform using Chocolatey on Windows
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Installing Terraform on Linux using the APT package manager
  • Getting ready
  • How to do it…
  • How it works…
  • See also
  • Installing Terraform using a script on Linux
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Executing Terraform in a Docker container
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Switching between multiple Terraform versions
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Upgrading Terraform providers
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Chapter 2: Writing Terraform Configurations
  • Technical requirements
  • Configuring Terraform and the provider version to use
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Adding alias to a provider to use multiple instances of the same provider
  • Getting ready
  • How to do it…
  • How it works…
  • See also
  • Manipulating variables
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Keeping sensitive variables safe
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Using local variables for custom functions
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Using outputs to expose Terraform provisioned data
  • Getting ready
  • How to do it…
  • How it works…
  • There's more….
  • See also
  • Calling Terraform's built-in functions
  • Getting ready
  • How to do it…
  • How it works…
  • See also
  • Using YAML files in Terraform configuration
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Writing conditional expressions
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Generating passwords with Terraform
  • Getting ready
  • How to do it…
  • How it works…
  • See also
  • Managing Terraform resource dependencies
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Adding custom pre and postconditions
  • Getting ready
  • How to do it…
  • How it works…
  • See also
  • Using checks for infrastructure validation
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Chapter 3: Scaling Your Infrastructure with Terraform
  • Technical requirements
  • Provisioning infrastructure in multiple environments
  • Getting ready
  • How to do it…
  • How it works…
  • See also
  • Provisioning multiple resources with the count meta-argument
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Using maps
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Looping over a map of objects
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Generating multiple blocks with the dynamic block
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Filtering maps
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Chapter 4: Using Terraform with External Data
  • Technical requirements
  • Obtaining external data with data sources
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Querying external data with Terraform
  • Getting ready
  • How to do it….
  • How it works…
  • There's more…
  • See also
  • Manipulating local files with Terraform
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Executing local programs with Terraform
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Executing shell scripts using the Terraform Shell provider
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Chapter 5: Managing Terraform State
  • Using the local Terraform state
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Managing resources in Terraform state
  • Getting ready
  • How to do it…
  • Displaying the content of state
  • Listing Terraform resource names within state
  • Showing detailed resource properties in state
  • Deleting resources from state
  • There's more…
  • See also
  • Synchronizing Terraform state
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Importing existing resources
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Using external resources from other Terraform state files
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Refactoring resources in configuration
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Chapter 6: Applying a Basic Terraform Workflow
  • Technical requirements
  • Keeping your Terraform configuration clean
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Validating the code syntax
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Destroying infrastructure resources
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Displaying a list of providers used in a configuration
  • Getting ready
  • How to do it…
  • How it works….
  • There's more…
  • See also
  • Generating one Terraform lock file with Windows and Linux compatibility
  • Getting ready
  • How to do it…
  • How it works…
  • See also
  • Copying a Terraform module configuration
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Using workspaces to manage environments
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Exporting the output in JSON
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Tainting resources
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Generating the dependency graph
  • Getting ready
  • How to do it…
  • How it works…
  • See also
  • Using different Terraform configuration directories
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Testing and evaluating a Terraform expression
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Debugging the Terraform execution
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Chapter 7: Sharing Terraform Configuration with Modules
  • Technical requirements
  • Creating a Terraform module and using it locally
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Provisioning multiple instances of a Terraform module
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Using modules from the public registry
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Sharing a Terraform module in the public registry using GitHub
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Using another file inside a custom module
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also.
  • Using the Terraform module generator
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Generating module documentation
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Using a private Git repository for sharing a Terraform module
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Applying a Terrafile pattern for using modules
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Chapter 8: Provisioning Azure Infrastructure with Terraform
  • Technical requirements
  • Using Terraform in Azure Cloud Shell
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Protecting the Azure credential provider
  • Getting ready
  • How to do it…
  • How it works…
  • There's more...
  • See also
  • Protecting the state file in the Azure remote backend
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Executing ARM templates in Terraform
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Executing Azure CLI commands in Terraform
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Using Azure Key Vault with Terraform to protect secrets
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Provisioning and configuring an Azure VM with Terraform
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Building Azure serverless infrastructure with Terraform
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Generating a Terraform configuration for existing Azure infrastructure
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Enabling optional Azure features
  • Getting ready
  • How to do it…
  • How it works….
  • There's more….