These promotions will be applied to this item:
Some promotions may be combined; others are not eligible to be combined with other offers. For details, please see the Terms & Conditions associated with these promotions.
Your Memberships and Subscriptions

Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet or computer – no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera, scan the code below and download the Kindle app.
Terraform Cookbook: Provision, run, and scale cloud architecture with real-world examples using Terraform Kindle Edition
Explore how to provision, manage, and scale your infrastructure using Infrastructure as Code (IaC) with Terraform
Purchase of the print or Kindle book includes a free PDF eBook
Key Features
- Get up and running with the latest version of Terraform (v1+) CLI
- Discover how to deploy Kubernetes resources with Terraform
- Learn how to troubleshoot common Terraform issues
Book Description
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.
What you will learn
- Use Terraform to build and run cloud and Kubernetes infrastructure using IaC best practices
- Adapt the Terraform command line adapted to appropriate use cases
- Automate the deployment of Terraform confi guration with CI/CD
- Discover manipulation of the Terraform state by adding or removing resources
- Explore Terraform for Docker and Kubernetes deployment, advanced topics on GitOps practices, and Cloud Development Kit (CDK)
- Add and apply test code and compliance security in Terraform configuration
- Debug and troubleshoot common Terraform errors
Who this book is for
This book is for developers, operators, and DevOps engineers looking to improve their workflow and use Infrastructure as Code. Experience with Microsoft Azure, Jenkins, shell scripting, and DevOps practices is required to get the most out of this Terraform book.
Table of Contents
- Setting Up the Terraform Environment
- Writing Terraform Configurations
- Scaling Your Infrastructure with Terraform
- Using Terraform with External Data
- Managing Terraform State
- Applying a Basic Terraform Workflow
- Sharing Terraform Configuration with Modules
- Provisioning Azure Infrastructure with Terraform
- Provisioning Simple AWS and GCP Infrastructure Using Terraform
- Using Terraform for Docker and Kubernetes Deployment
- Running Test and Compliance Security on Terraform Configuration
- Deep-Diving into Terraform
- Automating Terraform Execution in a CI/CD Pipeline
- Using Terraform Cloud to Improve Team Collaboration
- Troubleshooting Terraform Errors
- Appendix A: Terraform Cheat Sheet
- Appendix B: Terraform Resources
- LanguageEnglish
- PublisherPackt Publishing
- Publication date31 August 2023
- File size29.8 MB
Product description
About the Author
Product details
- ASIN : B0BGPTKBQM
- Publisher : Packt Publishing; 2nd edition (31 August 2023)
- Language : English
- File size : 29.8 MB
- Screen Reader : Supported
- Enhanced typesetting : Enabled
- X-Ray : Not Enabled
- Word Wise : Not Enabled
- Print length : 634 pages
- Best Sellers Rank: #186,510 in Kindle Store (See Top 100 in Kindle Store)
- #214 in Network Administration
- #370 in Software Design, Testing & Engineering
- #378 in Networking & Communications eBooks
- Customer Reviews:
About the author

Discover more of the author’s books, see similar authors, read book recommendations and more.
Customer reviews
Reviews with images

Poor binding quality.
Top reviews from India
There was a problem filtering reviews. Please reload the page.
- Reviewed in India on 3 January 2024Verified PurchaseThis book is great, it starts from basic and goes to advanced level like CI/CD with terraform , it also gives insights into things working in background.
- Reviewed in India on 22 January 2024Verified Purchase"Terraform Cookbook" is an indispensable guide for both Terraform novices and seasoned practitioners. With its well-structured recipes, the book seamlessly integrates theory and hands-on experience, covering the latest features and best practices.
- Reviewed in India on 30 September 2023Mikael Krief's "Terraform Cookbook" is a game-changer in the realm of Infrastructure as Code. This book equips readers with an extensive toolkit of practical insights and expert advice, taking Terraform skills to new heights. Krief's clear writing style makes complex concepts easily understandable, and the book's emphasis on best practices ensures efficient infrastructure management. Whether you're a novice or a seasoned pro, the structured approach, code snippets, and diagrams make this book an invaluable resource for designing resilient, scalable, and maintainable infrastructures. If you're serious about Terraform, don't miss out on this transformative guide.
- Reviewed in India on 3 February 2024With clear explanations, practical examples, and a focus on best practices, it's a must-read for both beginners and experienced users. The book's comprehensive approach and emphasis on DevOps practices make it an invaluable asset for mastering terraform and building top-notch cloud-native solutions.
- Reviewed in India on 3 October 2024Verified PurchaseThe publisher should review their binding partners as it's very poor experience. With the price of the book considered, it's very poorly managed to make the copy.
Expecting replacement, now I have to wait another 10 days.not sure if I can get the good book even after that.
1.0 out of 5 starsThe publisher should review their binding partners as it's very poor experience. With the price of the book considered, it's very poorly managed to make the copy.Poor binding quality.
Reviewed in India on 3 October 2024
Expecting replacement, now I have to wait another 10 days.not sure if I can get the good book even after that.
Images in this review
- Reviewed in India on 19 October 2023I have gone through few topics and it's well written. Enjoyed every bit of cook book for Terraform. Nicely curated and drafted with each details and steps are very simply written. Nice book for provisioning Infra in Cloud using IaC tool such as Terraform.
I would suggest to everyone to purchase this book and learn terraform concepts easily.
- Reviewed in India on 3 March 2024Diving into Mikael Krief's "Terraform Cookbook" has truly been a transformative experience in my journey with Infrastructure as Code. The book strikes an impressive balance, catering to both newcomers and seasoned professionals. The journey begins with fundamental concepts and gracefully progresses to advanced levels.
Interesting part of the readout and practice was "Getting ready with the topic, How to do it, and finally How it works... the concept of writing the chapter content.
The book covers a lot of examples especially in the domain of azure, So if anyone who looks forward knowing the Terraform w.r.t to Azure, this book can be very helpful.
Something missing was on-prem, I wish it also had a chapter for on-prem providers like VMware, nutanics kvm, hyper-v etc
Another key area to be mindful, would be to refer to the official docs during practices and making sure the terraform version is as per the book.
- Reviewed in India on 11 October 2023I recently delved into the "Terraform Cookbook," and it's been a game-changer for my infrastructure as code journey. This book offers a comprehensive and practical guide to mastering Terraform, making it a must-read for both beginners and seasoned practitioners.The book is well-structured, with each chapter focusing on a specific aspect of Terraform, from the basics to advanced techniques. The real-world examples and hands-on exercises are invaluable for understanding how to use Terraform effectively in various scenarios.One of the standout features is the cookbook-style approach, which provides quick solutions to common challenges, saving you time and effort. The explanations are clear, and the code snippets are well-documented.The author's expertise shines through, and their writing style is engaging and approachable. Even complex concepts are presented in a way that's easy to grasp.In conclusion, "Terraform Cookbook" is an excellent resource that I highly recommend to anyone looking to harness the power of Terraform for infrastructure provisioning. It's a practical guide that will undoubtedly boost your Terraform skills.
Top reviews from other countries
- BAReviewed in the United States on 17 January 2024
2.0 out of 5 stars Focused on Azure and GitHub
Verified PurchaseI wish the title included Azure and GitHub to more accurately describe what is in the book. Yes there are crumbs for AWS and GCP but the book is focused on Azure and GitHub. I would have passed.