Terraform import blocks to import Azure resources into Terraform

In a recent announcement with Terraform v1.5.0, Terraform released the option to import your resources into Terraform using import blocks. This feature is a great addition to Terraform as it allows you to import existing resources into your Terraform state file, which can be useful when you have resources that were created outside of Terraform. … Read more

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

Natural Language Infrastructure as Code: Is it the future of Cloud Automation?

Infrastructure as Code (IaC) has really revolutionised the way we manage and deploy our cloud resources. By treating infrastructure as code, we can automate the provisioning and management of cloud resources, making it faster, more reliable, and more scalable all while including the ability to have full source control benefits. However, writing IaC can be … 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

How to use GitHub Actions environment variables

In this blog, we will explore how to use environment variables in GitHub Actions, including how to create and use them in your workflows. Environment variables are an essential part of any software development process, and GitHub Actions makes it easy to manage them. Environment variables are values that are stored outside of your source … 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

Yarn Build and deploy image to Azure Container Registry using GitHub Actions

In this blog post I will show you can use a GitHub Action to run Yarn build and deploy a container image to Azure Container Registry. Prior to continuing with this blog, please review this post in relation to setting up the Azure Container registry and creating the three secrets required to be included in … Read more

Storing and retrieving secrets in Azure Key Vault with GitHub Actions

Screenshot of a GitHub Actions job creating resource groups using secret values. The image shows the az CLI commands in the workflow logs, where resource groups are being created with values sourced from GitHub Secrets. It includes the commands with hashed or masked secret values, indicating that the resource groups are being configured securely using the secrets

Using GitHub Actions and wanting to store secrets security while utilising Azure? In this blog post I will be showing how you can create and store secrets in Azure Key Vault and retrieve them to be used as part of your GitHub Actions. I wrote a bash script to achieve this as Azure/get-keyvault-secrets@v1 has been … Read more