mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-06 03:13:42 -05:00
Merge pull request #3031 from GSA/terraform_upgrade4
replace dry-run with creating a new state file and printing out the p…
This commit is contained in:
11
.github/workflows/deploy.yml
vendored
11
.github/workflows/deploy.yml
vendored
@@ -45,12 +45,21 @@ jobs:
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.TERRAFORM_STATE_SECRET_ACCESS_KEY }}
|
||||
run: |
|
||||
terraform state replace-provider \
|
||||
-dry-run \
|
||||
-state=terraform.tfstate \
|
||||
-state-out=new-state.tfstate \
|
||||
'registry.terraform.io/cloudfoundry-community/cloudfoundry' \
|
||||
'registry.terraform.io/cloudfoundry/cloudfoundry' \
|
||||
module.logo_upload_bucket
|
||||
|
||||
|
||||
- name: Terraform show swapped providers
|
||||
working-directory: terraform/staging
|
||||
env:
|
||||
AWS_ACCESS_KEY_ID: ${{ secrets.TERRAFORM_STATE_ACCESS_KEY }}
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.TERRAFORM_STATE_SECRET_ACCESS_KEY }}
|
||||
run: |
|
||||
terraform show -json new-state.tfstate | jq '.values.root_module.child_modules[]?.provider_configs'
|
||||
|
||||
- name: Terraform apply
|
||||
working-directory: terraform/staging
|
||||
env:
|
||||
|
||||
Reference in New Issue
Block a user