mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 07:46:23 -04: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 }}
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.TERRAFORM_STATE_SECRET_ACCESS_KEY }}
|
||||||
run: |
|
run: |
|
||||||
terraform state replace-provider \
|
terraform state replace-provider \
|
||||||
-dry-run \
|
|
||||||
-state=terraform.tfstate \
|
-state=terraform.tfstate \
|
||||||
|
-state-out=new-state.tfstate \
|
||||||
'registry.terraform.io/cloudfoundry-community/cloudfoundry' \
|
'registry.terraform.io/cloudfoundry-community/cloudfoundry' \
|
||||||
'registry.terraform.io/cloudfoundry/cloudfoundry' \
|
'registry.terraform.io/cloudfoundry/cloudfoundry' \
|
||||||
module.logo_upload_bucket
|
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
|
- name: Terraform apply
|
||||||
working-directory: terraform/staging
|
working-directory: terraform/staging
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user