Skip to content

Commit

Permalink
added STATE_KEY to iac tasks vars so UDS_ prefix in workflow works
Browse files Browse the repository at this point in the history
  • Loading branch information
TristanHoladay committed Mar 29, 2024
1 parent 8540288 commit b97f39b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tasks/iac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ variables:
- name: PERMISSIONS_BOUNDARY_ARN
- name: STATE_BUCKET_NAME
- name: STATE_DYNAMODB_TABLE_NAME
- name: STATE_KEY
- name: AMI_ID
default: ami-068ab6ac1cec494e0

Expand Down Expand Up @@ -76,8 +77,8 @@ tasks:
- name: create-iac
actions:
- task: apply-terraform
# - task: terraform-outputs
# - task: create-uds-config
- task: terraform-outputs
- task: create-uds-config

- name: destroy-iac
actions:
Expand All @@ -88,6 +89,7 @@ tasks:
- cmd: echo ${STATE_KEY} | sed 's/\.tfstate/-buckets.tfstate/g'
setVariables:
- name: BUCKETS_STATE_KEY
dir: .github/test-infra/buckets-iac
- cmd: echo ${BUCKETS_STATE_KEY}
- cmd: |
terraform init -force-copy \
Expand Down

0 comments on commit b97f39b

Please sign in to comment.