₹938.69

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.

Price includes GST
You have subscribed to ! We will pre-order your items within 24 hours of when they become available. When new books are released, we will charge your default payment method at the lowest price available during the pre-order period.
Update your device or payment method, cancel individual pre-orders or your subscription at
Your Memberships and Subscriptions
Kindle app logo image

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.

QR code to download the Kindle App

Follow the author

Something went wrong. Please try your request again later.

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

  1. Setting Up the Terraform Environment
  2. Writing Terraform Configurations
  3. Scaling Your Infrastructure with Terraform
  4. Using Terraform with External Data
  5. Managing Terraform State
  6. Applying a Basic Terraform Workflow
  7. Sharing Terraform Configuration with Modules
  8. Provisioning Azure Infrastructure with Terraform
  9. Provisioning Simple AWS and GCP Infrastructure Using Terraform
  10. Using Terraform for Docker and Kubernetes Deployment
  11. Running Test and Compliance Security on Terraform Configuration
  12. Deep-Diving into Terraform
  13. Automating Terraform Execution in a CI/CD Pipeline
  14. Using Terraform Cloud to Improve Team Collaboration
  15. Troubleshooting Terraform Errors
  16. Appendix A: Terraform Cheat Sheet
  17. Appendix B: Terraform Resources
Due to its large file size, this book may take longer to download

Product description

About the Author

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.

Product details

About the author

Follow authors to get new release updates, plus improved recommendations.
Mikael Krief
Brief content visible, double tap to read full content.
Full content visible, double tap to read brief content.

Discover more of the author’s books, see similar authors, read book recommendations and more.

Customer reviews

3.7 out of 5 stars
29 global ratings

Review this product

Share your thoughts with other customers
Poor binding quality.
1 out of 5 stars
Poor binding quality.
The 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.
Thank you for your feedback
Sorry, there was an error
Sorry we couldn't load the review

Top reviews from India

  • Reviewed in India on 3 January 2024
    Verified Purchase
    This 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 2024
    Verified 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 2023
    Mikael 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 2024
    With 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 2024
    Verified Purchase
    The 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.
    Customer image
    1.0 out of 5 stars
    Poor binding quality.

    Reviewed in India on 3 October 2024
    The 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.
    Images in this review
    Customer imageCustomer image
  • Reviewed in India on 19 October 2023
    I 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 2024
    Diving 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 2023
    I 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

  • Steve
    5.0 out of 5 stars Good examples and well written
    Reviewed in the United States on 5 July 2024
    Verified Purchase
    I needed a TF book for Azure. This book's examples are mostly Azure, so it's perfect
  • Franco Embarcadero
    5.0 out of 5 stars 100% Top Terraform reference.
    Reviewed in Spain on 15 December 2023
    Verified Purchase
    Sinks in every topic and gives you the goods to be a top Terraform engineer
  • BA
    2.0 out of 5 stars Focused on Azure and GitHub
    Reviewed in the United States on 17 January 2024
    Verified Purchase
    I 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.
  • Akwasi O Akyaw
    1.0 out of 5 stars Poor
    Reviewed in the United States on 12 April 2024
    Verified Purchase
    Don't bother, there are no lessons here. Just a bunch of how to do things and no real applications. Save your money, I couldn't save mine.

Report an issue


Does this item contain inappropriate content?
Do you believe that this item violates a copyright?
Does this item contain quality or formatting issues?