This document describes the steps required to demo an opinionated workflow deploying and managing Azure resources using Terraform Enterprise.
In order to complete this demo, you need to have:
- a Terraform Enterprise account
- a git account
-
Fork the following repositories: terraform-azure-resourcegroupexample terraform-azure-sgexample-dev terraform-azure-sgexample-prod terraform-azure-vnetexample
-
Create the following TFE workspaces:
- ResourceGroups -> referencing terraform-azure-resourcegroupexample
- Terraform Variables: none required
- Environment Variables: Azure keys
- SecurityGroupDev -> referencing terraform-azure-sgexample-dev
- Terraform Variables: tfe_org (name of your TFE org), rg_workspace (name of workspace with resource group - e.g. ResourceGroups)
- Environment Variables: Azure keys
- SecurityGroupProd -> referencing terraform-azure-sgexample-prod
- Terraform Variables: tfe_org (name of your TFE org), rg_workspace (name of workspace with resource group - e.g. ResourceGroups)
- Environment Variables: Azure keys
- VnetDev -> referencing terraform-azure-vnetexample
- Terraform Variables: tfe_org (name of your TFE org), rg_workspace (name of workspace with security group dev - e.g. SecurityGroupDev)
- Environment Variables: Azure keys
- Run each in sequence
- Open Azure, validate resources created
- Update port in terraform-azure-sgexample-dev, commit, push, accept TF apply
- Open Azure, validate security group changed