Skip to content

Commit

Permalink
Issue #3: Set up terraform pipeline for our infra repo (gh) with Azur…
Browse files Browse the repository at this point in the history
…e Pipelines

[skip ci]
  • Loading branch information
SonOfLope committed Feb 1, 2024
1 parent 4a5b0b4 commit 97ddbe7
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions apply-terraform.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
trigger:
- 3-create-a-kubernetes-cluster-for-azure-w-the-ingress-nginx

pool:
vmImage: 'ubuntu-latest'
steps:
- task: TerraformTaskV1@0
displayName: Terra Init
inputs:
provider: 'azurerm'
command: 'init'
workingDirectory: '$(System.DefaultWorkingDirectory)/terraform'
backendServiceArm: 'CFSC-AiLabChatbot-Sub-SP'
backendAzureRmResourceGroupName: 'rg-ai-cfia-terraform-state'
backendAzureRmStorageAccountName: 'tfcfiastate'
backendAzureRmContainerName: 'infra-terraform-state'
backendAzureRmKey: 'tf/terraform.tfstate'
- task: TerraformTaskV1@0
displayName: Terra Plan
inputs:
provider: 'azurerm'
command: 'plan'
workingDirectory: $(System.DefaultWorkingDirectory)
environmentServiceNameAzureRM: 'CFSC-AiLabChatbot-Sub-SP'
- task: TerraformTaskV1@0
displayName: Terra Apply
inputs:
provider: 'azurerm'
command: 'apply'
workingDirectory: $(System.DefaultWorkingDirectory)
environmentServiceNameAzureRM: 'CFSC-AiLabChatbot-Sub-SP'

0 comments on commit 97ddbe7

Please sign in to comment.