Untitled

mail@pastecode.io avatar
unknown
terraform
a year ago
871 B
6
Indexable
Never
trigger: none

pool:
  vmImage: 'ubuntu-latest'

container: jvkubjg/ubuntu:kitchen7.0.2

parameters:
- name: kitchen-instance
  displayName: Which kitchen instance do you want to run?
  type: string
  default: simple_bucket
  values:
  - simple_bucket
variables:
  - group: platform-dev-vars

stages:
- stage: setup  
  jobs:
  - job: setup
    steps:
    - task: DownloadSecureFile@1
      name: authkey
      displayName: 'Download Service Account Key'
      inputs:
      secureFile: 'dev-gcp-key.json'
      retryCount: '2'
    - script: |
        cd test/setup
        terraform init
        terraform apply 
      env:
        GOOGLE_APPLICATION_CREDENTIALS: $(authkey.secureFilePath)
        TF_VAR_parent-node-id: $(parent_node_id)
        TF_VAR_platform-id: $(platform_id)
        TF_VAR_billing_account: $(billing_account)