Skip to content

Instantly share code, notes, and snippets.

@stenio123
Created January 11, 2019 00:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save stenio123/5e5bfdbd10c31fccec00c8b6df0720a5 to your computer and use it in GitHub Desktop.
Save stenio123/5e5bfdbd10c31fccec00c8b6df0720a5 to your computer and use it in GitHub Desktop.
Example Azure Terraform Enterprise Workflow

Example Azure Terraform Enterprise Workflow

This document describes the steps required to demo an opinionated workflow deploying and managing Azure resources using Terraform Enterprise.

Requirements

In order to complete this demo, you need to have:

  • a Terraform Enterprise account
  • a git account

Steps

  1. Fork the following repositories: terraform-azure-resourcegroupexample terraform-azure-sgexample-dev terraform-azure-sgexample-prod terraform-azure-vnetexample

  2. 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
  1. Run each in sequence
  2. Open Azure, validate resources created
  3. Update port in terraform-azure-sgexample-dev, commit, push, accept TF apply
  4. Open Azure, validate security group changed
@stenio123
Copy link
Author

exampleazuretfeworkflow-whiteboard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment