Skip to content

Instantly share code, notes, and snippets.

@rudolphjacksonm
Last active April 12, 2020 15:54
Show Gist options
  • Save rudolphjacksonm/aab335774b434a95160905ae94095b3e to your computer and use it in GitHub Desktop.
Save rudolphjacksonm/aab335774b434a95160905ae94095b3e to your computer and use it in GitHub Desktop.
variables:
- name: terraformVersion
value: 0.12.23
trigger: none
pool:
vmImage: 'ubuntu-latest'
stages:
- stage:
displayName: Terraform Plan
jobs:
- job:
steps:
- template: 'templates/terraform_plan.yml'
parameters:
serviceConnectionName: <>
backendAzureRmResourceGroupName: <>
backendAzureRmStorageAccountName: <>
backendAzureRmContainerName: terraform
backendAzureRmKey: <>.tfstate
tfComponent: <>
tfExecutionDir: $(System.DefaultWorkingDirectory)/terraform/<>
tfVarFileName: <>.tfvars
- stage:
displayName: Terraform Apply
jobs:
- deployment: Deploy
displayName: Run Terraform Apply
pool:
vmImage: 'ubuntu-latest'
environment: '<>'
strategy:
runOnce:
deploy:
steps:
- template: 'templates/terraform_apply.yml'
parameters:
serviceConnectionName: <>
backendAzureRmResourceGroupName: <>
backendAzureRmStorageAccountName: <>
backendAzureRmContainerName: terraform
backendAzureRmKey: <>.tfstate
tfComponent: <>
tfExecutionDir: $(System.DefaultWorkingDirectory)/terraform/<>
tfVarFileName: <>.tfvars
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment