2 options
Terraform cookbook : provision, run, and scale cloud architecture with real-world examples using terraform / Mikael Krief and Armon Dadgar.
- Format:
- Book
- Author/Creator:
- Krief, Mikael, author.
- Dadgar, Armon, author.
- Series:
- Expert insight.
- Expert insight
- Language:
- English
- Subjects (All):
- Information networks--Automation.
- Information networks.
- Information networks--Management.
- Cloud computing.
- Application software.
- Physical Description:
- 1 online resource (635 pages)
- Edition:
- Second edition.
- Place of Publication:
- Birmingham, England : Packt Publishing Ltd., [2023]
- Biography/History:
- Krief Mikael: Mikael Krief is a DevOps engineer who lives in France. He believes that Infrastructure as Code is a fundamental practice in DevOps culture. He is therefore interested in HashiCorp products and specializes in the use of Terraform. Mikael loves to share his passion through various communities, such as the HashiCorp User Groups. Over the years, he has contributed to many public projects, written various blog posts, published several books, and spoken at leading conferences. For his contributions and passion, he was nominated and selected as a HashiCorp Ambassador since 2019, and he has been awarded the Microsoft Most Valuable Professional (MVP) award for 7 years.
- Summary:
- 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. This new edition has been updated to include real-world examples for provisioning Azure, AWS and GCP infrastructure with Terraform. You'll delve into manual and automated testing with Terraform configurations, creating and managing a balanced, efficient, and reusable infrastructure with Terraform modules. You'll learn how to automate the deployment of Terraform configuration with continuous integration and continuous delivery (CI/CD). Besides that, several new chapters have been added that describe the use of Terraform for Docker and Kubernetes, examine advanced topics on GitOps practices, and explain how to test Terraform configurations using different tools to check code and security compliance. The final chapter covers troubleshooting common Terraform issues and provides solutions for frequently encountered errors. By the end of this book, you'll have developed the skills needed to get the most value out of Terraform and to effectively manage your infrastructure.
- Contents:
- 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
- There's more…
- See also
- Installing Terraform on Linux using the APT package manager
- Installing Terraform using a script on Linux
- Executing Terraform in a Docker container
- Switching between multiple Terraform versions
- Upgrading Terraform providers
- Chapter 2: Writing Terraform Configurations
- Configuring Terraform and the provider version to use
- Adding alias to a provider to use multiple instances of the same provider
- Manipulating variables
- Keeping sensitive variables safe
- Using local variables for custom functions
- Using outputs to expose Terraform provisioned data
- There's more….
- See also
- Calling Terraform's built-in functions
- Using YAML files in Terraform configuration
- Writing conditional expressions
- Generating passwords with Terraform
- Managing Terraform resource dependencies
- Adding custom pre and postconditions
- Using checks for infrastructure validation
- Chapter 3: Scaling Your Infrastructure with Terraform
- Provisioning infrastructure in multiple environments
- Provisioning multiple resources with the count meta-argument
- Using maps
- Looping over a map of objects
- Generating multiple blocks with the dynamic block
- Filtering maps
- Chapter 4: Using Terraform with External Data
- Obtaining external data with data sources
- Querying external data with Terraform
- How to do it….
- How it works…
- Manipulating local files with Terraform
- Executing local programs with Terraform
- Executing shell scripts using the Terraform Shell provider
- Chapter 5: Managing Terraform State
- Using the local Terraform state
- Managing resources in Terraform state
- Displaying the content of state
- Listing Terraform resource names within state
- Showing detailed resource properties in state
- Deleting resources from state
- Synchronizing Terraform state
- Importing existing resources
- Using external resources from other Terraform state files
- Refactoring resources in configuration
- Chapter 6: Applying a Basic Terraform Workflow
- Keeping your Terraform configuration clean
- Validating the code syntax
- Destroying infrastructure resources
- Displaying a list of providers used in a configuration
- How it works….
- There's more…
- Generating one Terraform lock file with Windows and Linux compatibility
- Copying a Terraform module configuration
- Using workspaces to manage environments
- Exporting the output in JSON
- Tainting resources
- Generating the dependency graph
- Using different Terraform configuration directories
- Testing and evaluating a Terraform expression
- Debugging the Terraform execution
- Chapter 7: Sharing Terraform Configuration with Modules
- Creating a Terraform module and using it locally
- Provisioning multiple instances of a Terraform module
- Using modules from the public registry
- Sharing a Terraform module in the public registry using GitHub
- Using another file inside a custom module
- See also.
- Using the Terraform module generator
- Generating module documentation
- Using a private Git repository for sharing a Terraform module
- Applying a Terrafile pattern for using modules
- Chapter 8: Provisioning Azure Infrastructure with Terraform
- Using Terraform in Azure Cloud Shell
- Protecting the Azure credential provider
- There's more...
- Protecting the state file in the Azure remote backend
- Executing ARM templates in Terraform
- Executing Azure CLI commands in Terraform
- Using Azure Key Vault with Terraform to protect secrets
- Provisioning and configuring an Azure VM with Terraform
- Building Azure serverless infrastructure with Terraform
- Generating a Terraform configuration for existing Azure infrastructure
- Enabling optional Azure features
- There's more….
- Notes:
- Includes index.
- Description based on print version record.
- ISBN:
- 9781804619636
- 1804619639
- OCLC:
- 1396224343
The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.