Terraform error Insufficient features blocks

Screenshot showing a Terraform error output indicating 'insufficient feature blocks'. The image highlights the error message in the Terraform logs, which specifies that the configuration lacks the necessary feature blocks or settings. The error details suggest that required features or configurations are missing, preventing successful execution of the Terraform plan or apply operation.

A quick blog post to assist you, if you are working with Terraform and you come across the error message Insufficient features blocks when attempting to deploy your infrastructure, don’t worry, it’s a simple fix. This error message is indicating that there is a missing “features” block in your Terraform configuration file. The “features” block … Read more

My thoughts on why you should use Terraform Provisioners as a final option

In today’s world, Infrastructure as Code (IaC) has become a fundamental part of managing and deploying cloud infrastructure. Terraform is a widely used IaC tool that enables us to define our infrastructure as code, store it in version control, and use it to provision and manage our cloud resources. Provisioners in Terraform are used to … Read more

Using GitHub Actions variables as Terraform variables

In Terraform you can use variables to make your code more dynamic and reusable. You can use variables to pass in values from the command line, from a file, or from environment variables. In this blog post I will show you how to use GitHub Actions variables as Terraform variables. GitHub Actions Variables GitHub Actions … Read more

GitHub Action Workflow hashicorp/setup-terraform@v2 ERROR: Please run ‘az login’ to setup accountGitHub Action Workflow hashicorp/setup-terraform@v2 error:

A quick blog post on assisting with a couple of errors I came across when using workflow hashicorp/setup-terraform@v2 – this also remediates hashicorp/setup-terraform@v1 also. Two errors found, relating to the same fix: First error: Second error: The fix As detailed here in standard terraform usage is: Within my GitHub action, here is my remediation example … Read more

Terraform Secret Management in Azure using Azure Key Vault

Deploying Terraform to Azure is a great way to manage your infrastructure as code. In this blog post, I will show you how to use Azure Key Vault to store your Terraform secrets. I was asked this query recently and thought I would create a quick blog post to show how to do this. Why … Read more

Deploy Container App and pull image from Azure Container Registry using Terraform

In this blog post, I am going to show how you can Deploy an Azure Container Image and pull its image from Azure Container Registry using an user assigned managed identity – all done via Terraform. In a previous blog post, I completed similar using Terraform and AzAPI but in a recent Terraform update 3.43.0 … Read more

Terraform Warning: “Version constraints inside provider configuration blocks are deprecated” fix

Screenshot showing a Terraform error message indicating a deprecated provider version constraint. The error message highlights the issue on providers.tf line 2, where the provider version is specified within the provider block. The message explains that Terraform 0.13 and earlier allowed version constraints here, but this practice is now deprecated and will be removed in future Terraform versions. It advises moving the version constraint into the required_providers block to resolve the warning.

A quick blog post on how to resolve the Terraform warning Warning: Version constraints inside provider configuration blocks are deprecated within your Terraform configuration. The fix below is in relation to azurerm provider, but similar fix can be used for other providers. Using Terraform version > 0.13, you will see this warning with similar output … Read more

Deploy Container App and pull image from Azure Container Registry using Terraform and AzAPI

High-Level Diagram (HLD) showing the architecture involving a Container App, Managed Identity, and Azure Container Registry (ACR). The diagram illustrates how the Container App is configured to pull container images from ACR. It also shows the Managed Identity linked to the Container App, enabling secure access to ACR and other Azure resources.

In this blog I am going to show how to deploy Container App and pull an image from Azure Container Registry using user assigned managed identity for authentication. I will be achieving this using Terraform and AzAPI. Image below shows a diagram of what I will be deploying; it shows container app accessing a container … Read more

Deploy your first container app using Terraform and GitHub Actions tutorial/lab

High-Level Diagram (HLD) illustrating the workflow from a GitHub repository to deployment on Azure services. The diagram shows a GitHub repository with GitHub Actions configured to build and push images to Azure Container Registry (ACR). It also depicts the deployment of these images from ACR to an Azure Container App using a managed identity for secure access. Additionally, the diagram includes integrations with Application Insights and Log Analytics for monitoring and logging purposes.

This tutorial/lab has been created to take you through a DevOps journey to build & deploy an Azure Container Application using Terraform and GitHub Actions. It will include from setting up the GitHub pipeline, prerequisites and finishing with a successful Container Application being deployed – along with looking at alerting/monitoring! This is also my contribution … Read more

Building and deploying to an AKS cluster using Terraform and Azure DevOps with Kubernetes and Helm providers

I have a few blogs now on deploying Azure Kubernetes Services (AKS) with different scenarios, such as deploying AKS with Application Gateway Ingress, in this blog post I am going to be building and deploying to an AKS cluster using Terraform and Azure DevOps. You will also have noticed in the title, it references both … Read more