Announcing the 2nd edition of my book Terraform Cookbook

I am pleased to announce the publication of the Second Edition of my book focused to Terraform called Terraform Cookbook. This new edition has allowed for a complete overhaul of the chapters and contains over 50 new “recipes” on the use of Terraform in real-world use cases.

In this book which is in a cookbook format you will learn mainly through recipes to:

  • Installing Terraform, switch on multiple Terraform versions and upgrade Terraform providers
  • Writing Terraform configuration to provision and scale your infrastructure with Terraform
  • Using Terraform with external data like data, file and local programs
  • Managing the Terraform State
  • Applying the Terraform workflow using the command lines
  • Sharing Terraform configuration by creating and using Terraform modules
  • Provisionning Azure infrastructure using Terraform
  • Getting started to provisioning AWS and GCP infrastructure using Terraform
  • Using Terraform to manage Docker images and deploy Kubernetes applications
  • Running tests and security compliance on Terraform configuration
  • Deep diving into Terraform with zero downtime, use Terragrunt, Git hook pre-commit, …
  • Automating Terraform locally and in CI/CD pipelines
  • Using Terraform Cloud
  • Troubleshooting Terraform issues
  • Appendix with my Terraform Cheat Sheet and my Terraform resources list

Read more

Announcing my new book Terraform Cookbook

I am pleased to announce the official publication of my new book focused to Terraform called Terraform Cookbook.

In this book which is in a cookbook format you will learn mainly through many recipes to:

  • Installing Terraform
  • Writing Terraform configuration
  • Using Terraform’s command lines
  • Creating and use Terraform modules
  • Using Terraform for Azure provisioning
  • Testing the Terraform code
  • Integrating Terraform into a pipeline CI/CD with Azure DevOps or GitHub Action
  • Using Terraform Cloud

Read more

Installing Terraform on Linux

HashiCorp has recently announced in this blog post the possibility to download their tools (Terraform, Packer, Consul, …) via a classical and official Linux packages manager.

In this blog post, I expose how to use this repository for download the Terraform binary on Linux operating system.

Read more

Get list of Azure VM IP addresses based on tags

In my recent client I had a feature to get the list of private IP addresses of Azure virtual machines based on theirs tags.

For apply this I used the Azure cli tools and execute this command

az vm list-ip-addresses --ids $(az resource list --query "[?type=='Microsoft.Compute/virtualMachines' && tags.ENV == 'DEV'].id" --output tsv) --query "[].virtualMachine.network.privateIpAddresses[0]" | jq -r @csv

Read more