Skip to content

Commit

Permalink
Add devops pipeline for terraform state creation
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemonteith committed May 25, 2021
1 parent c75d0b4 commit a379fc3
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions terraform-state-pipeline.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Only allow this pipeline to be run manually
trigger: none

pool:
vmImage: ubuntu-latest

parameters:
- name: env
displayName: Environment (dev, stag, prod, etc.)
type: string
- name: region
displayName: Region (uks, ukw, etc.)
type: string

steps:

- task: AzureCLI@2
inputs:
azureSubscription: 'nhsuk-user-feedback-${{ parameters.env }}'
scriptType: 'bash'
scriptLocation: 'inlineScript'
inlineScript: |
./scripts/create_terraform_state.sh \
--env=${{ parameters.env }} \
--region=${{ parameters.region }}
displayName: 'Create terraform state resources'

0 comments on commit a379fc3

Please sign in to comment.