Terraform State File in Azure

DevOps Engineer that wears multiple hats.
Search for a command to run...

DevOps Engineer that wears multiple hats.
No comments yet. Be the first to comment.
Copilot Content Exclusion Copilot has been great for our org, but it's a good idea to use a Content Exclusion policy to your GitHub repository settings to specify content that Copilot should ignore. W

How to get all us-east-1 Public IP Addresses for EC2 If necessary - Mac (install brew, then install jq) and Linux below that: /bin/bash -c "$(curl -fsSL raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" brew install jq sudo apt install jq...
More details here: AWS Site-to-Site VPN Documentation I recently had to configure a Site-to-Site VPN connection between an AWS VPC and an Azure VNet. The appliance on the other end was able to ultimately talk to an EC2 instance after messing around w...

3 ways to test DNS in the command line

This is sort of a chicken and egg situation where the egg has to come before the chicken. The state file is important and it maintains your current state of all your Azure resources created via Terraform. There are many ways to get started, but this is my approach.
az login
az group create --name my-resource-group --location westus
az storage account create --resource-group my-resource-group --name terraformstorageacct1
az storage container create --name tfstate-westus --acount-name terraformstorageacct1
terraform {
backend "azurerm" {
resource_group_name = "my-resource-group"
storage_account_name = "terraformstorageacct1"
container_name = "tfstate-westus"
key = "myfirst.tfstate"
}
}
terraform init