Skip to content

Instantly share code, notes, and snippets.

@JamesDLD
Last active November 13, 2019 12:48
Show Gist options
  • Save JamesDLD/59b9dbdc42fc572fc639004a73629f54 to your computer and use it in GitHub Desktop.
Save JamesDLD/59b9dbdc42fc572fc639004a73629f54 to your computer and use it in GitHub Desktop.
- stage: Deploy
dependsOn: Build
jobs:
# track deployments on the environment
- deployment: Terraform_Apply
displayName: Terraform Apply - Resources creation
pool:
vmImage: $(vmImageName)
environment: "Terraform_Apply"
strategy:
# default deployment strategy
runOnce:
deploy:
steps:
- template: terraform.yml@Yaml_Templates
parameters:
version: $(terraform_version)
artifact_path: $(Pipeline.Workspace)/$(artifact_name)
package_name: "aks-k8s"
terraform_apply: true
main_file_path: "variable/main-jdld.tfvars"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment