A few weeks ago, I created a peering relationship between two VPCs that belonged to separate AWS accounts using Terraform. This note captures my learning from that exercise. But before I do so, let me briefly give an overview of VPC peering and then walk through the process of creating one. Per AWS, "Amazon Virtual … Continue reading VPC Peering using Terraform across separate AWS accounts
Tag: Terraform
Working with Terraform tags
A few months back, HashiCorp released a new feature in Terraform provider version 3.38.0 where they introduced default tags. Tags have been a helpful feature while working with a cloud provider because it allows one to quickly and (depending on one's tagging strategy) uniquely identify a cloud resource. Terraform, as we know, is an infrastructure … Continue reading Working with Terraform tags
What is terraform import and why you too should know about it
We want to do it right and do it right the first and every time, whether it is learning to play the guitar or to create software. Or whether it is creating a version-able, re-usable, repeatable, and testable approach to provisioning infrastructure on the cloud. AKA infrastructure as code. And by the way, before you … Continue reading What is terraform import and why you too should know about it
YAML based Azure Pipeline approach for CI/CD of Terraform workspace
This note is a short addition to the last post -CI/CD of Terraform workspace with YAML-based Azure Pipelines. At the end of that article, I mentioned a few alternate routes regarding YAML-based Azure Pipelines, which I will be covering here. So that we are on the same page, I broke down the build pipeline into … Continue reading YAML based Azure Pipeline approach for CI/CD of Terraform workspace
CI/CD of Terraform workspace with YAML based Azure Pipelines
This note focuses on using Azure DevOps with Terraform workspace to automate the ideas discussed in the previous two notes (i) CI/CD using Terraform and Azure Pipelines -ideation and (ii) Terraform workspace with multiple AWS accounts. If you are new to Azure DevOps, I would suggest you familiarize yourself with either Azure DevOps build and … Continue reading CI/CD of Terraform workspace with YAML based Azure Pipelines
Terraform workspace with multiple AWS accounts
My objectives was to use Terraform to provision resources across environments in the AWS cloud infrastructure. Following a typical CI/CD model, my idea was to build once and deploy multiple. Since there was nothing to build in terraform, I wanted to make sure the same terraform code was applied across all environments. So I thought, … Continue reading Terraform workspace with multiple AWS accounts
CI/CD using Terraform and Azure Pipelines -ideation
After writing a few notes on "Azure DevOps and Terraform," I thought of exploring the idea of integrating Azure DevOps and Terraform a little further. Generally speaking, in Azure Pipelines (classic editor), a build definition (pipeline in Azure DevOps services) is used to compile and package an artifact. Then, under Releases, we have a release … Continue reading CI/CD using Terraform and Azure Pipelines -ideation
Create Terraform pre-requisites for AWS using AWS CLI in 3 easy steps
Generally speaking, when we work with Terraform to provision resources in AWS Cloud, we have a few pre-requisites. These areĀ -a remote backend to store the Terraform state file, a lock table, and IAM user credentials that Terraform will require to provision the resources. I say "generally speaking" because you can get away with the … Continue reading Create Terraform pre-requisites for AWS using AWS CLI in 3 easy steps
Create Terraform pre-requisites for Azure using Azure CLI in 3 easy steps
Any Terraform project configuring resources in Azure has pre-requisites. These are (i) a storage account, a container in the storage account, and the access key to the storage account, and (ii) a service principal credential to be able to communicate with Azure to create-update-delete resources. In this post, I describe the process to set up … Continue reading Create Terraform pre-requisites for Azure using Azure CLI in 3 easy steps
Terraform Remote State -Part 2: Using Azure
This note is in continuation to the previous oneĀ -Terraform Remote State -Part1: Using AWS, where I've covered the what and how of a terraform remote state. So that we are all on the same page, I'll list down a few important points related to that: -the current state of infrastructure as referred to by … Continue reading Terraform Remote State -Part 2: Using Azure