Creating multiple Azure postgresql server replicas using Terraform

Using Terraform to create a postgresql server in Azure? There may be sometimes a requirement to create additional read-replicas of this server. In this blog, I am going to show how you can achieve this! I will be giving the option to create additional replicas with a variable addition (up to 5 replicas allowed currently … Read more

Using Aztfy to import existing Azure resources into Terraform

Wanting to import existing Azure resources into Terraform? A recently announced tool called Terrafy will be something you will be certainly interested in! In this blog, I will have a look at using Aztfy and its configuration to both import Azure resources into terraform state locally and also directly to an Azure Storage Account. “A … Read more

Create a PostgreSQL single server read replica in Azure using Terraform

Screenshot from the Azure Portal showing an Azure PostgreSQL Single Server with one read replica. The image highlights both the primary server and the read replica, indicating their statuses and replication details.

Deploying PostgreSQL single server in Terraform and wanting to create a read replica? In this blog post I will show you how, it is rather straight-forward to setup with Terraform. Lets begin by looking at the terraform to create PostgreSQL single server; will follow on with showing how to add read-replica with terraform. Terraform for … Read more

Deploying multiple Container Apps in Azure using Terraform and AzAPI

Screenshot from the Azure Portal displaying Container Apps and a Log Analytics workspace. The image highlights the list of Container Apps alongside the Log Analytics workspace, showing their names and statuses.

In this blog post I am going to show you can deploy multiple Container Apps in Azure using Terraform and AzAPI. You may be wondering what is AzAPI? Some times with new resource updates, the terraform AzureRM provider is not up to date or missing a piece of functionality within a particular resource. With this … Read more

Uploading contents of a folder to Azure Blob Storage using Terraform

In this blog post, I am going to show how you can upload contents of a folder to Azure Blob Storage using Terraform – this can work great, to keep the contents of the folder in source control! To achieve the file upload functionality, I will be using the fileset function within Terraform fileset enumerates a … Read more

Creating Terraform Variables from Azure DevOps Pipeline Variables

Deploying Terraform using an Azure DevOps pipeline, you can use pipeline variables as part of your Terraform variables, in this blog post I will show you how. With Terraform, you are probably using .tfvars if deploying the multiple environments – awesome! There may be a time that you want to change a variable or have … Read more

Writing reusable Terraform modules

High-Level Design (HLD) diagram showing a Terraform root module with various possibilities for other modules built from it. The image illustrates the root module at the center, with arrows or lines connecting to multiple other modules, depicting how these modules can be derived or integrated from the root module for different infrastructure components.

Are you using Terraform? Deploying to multiple environments? Terraform code duplication? If you answered yes, in this blog post I am going to look at creating reusable Terraform modules including the basics, benefits and why you should be using them and finish with two examples. Deploying and managing Terraform over time in a single file … Read more

Referencing Azure Key Vault secrets in Terraform

A quick blog post on how to store your secrets in Azure Key Vault and referencing them within your Terraform configurations. The Azure Key Vault and secrets Azure key Vault and secrets is certainly the recommended approach for storing secrets in Azure! Benefits include: Now the Terraform I am assuming you have used Terraform previously; … Read more

Deploy to Azure Container Instance from Azure Container Registry using a CI/CD Azure DevOps Pipeline and Terraform

High-Level Design (HLD) diagram illustrating a CI/CD pipeline for a container app in Azure. The image shows the flow from Azure Repos for source code, through an Azure Pipeline for build and deployment, to Azure Container Registry (ACR) for image storage and retrieval, culminating in the deployment of the container app

I am going to show using an Azure DevOps Pipeline and Terraform how you can deploy to your Azure Container Instance and setting up the pipeline to build a new Image and enabling CI/CD when you push to the repository – the pipeline will build a new image and deploy the updated image to the … Read more

Setting up Azure DevOps to begin deploying Terraform and configuring an Azure Storage Account for Terraform remote state

Within this blog post I am going to show how to setup Azure DevOps and configuring an Azure Storage Account for Terraform remote state. I write numerous blog posts that do reference this scenario quite often; rather than repeating myself within each post I am creating this base post of which I will be referencing … Read more