Skip to content

Commit

Permalink
Add refresh-only to terraform plan
Browse files Browse the repository at this point in the history
  • Loading branch information
renjiezh committed Nov 21, 2024
1 parent 9682734 commit b1c5be5
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/terraform-cmms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,15 @@ jobs:
-backend-config="bucket=$TF_STORAGE_BUCKET"
-backend-config="region=$AWS_REGION"
- name: terraform remove state - aws
env:
POSTGRES_INSTANCE: ${{ vars.POSTGRES_INSTANCE }}
AWS_S3_BUCKET: ${{ vars.AWS_S3_BUCKET }}
ENVIRONMENT: ${{ inputs.environment }}
working-directory: ${{ env.AWS_MODULE_PATH }}
run: >
terraform state rm 'module.worker2_cluster_addons["worker2"]'
- name: terraform plan - aws
env:
POSTGRES_INSTANCE: ${{ vars.POSTGRES_INSTANCE }}
Expand All @@ -125,7 +134,7 @@ jobs:
working-directory: ${{ env.AWS_MODULE_PATH }}
run: >
terraform plan
-refresh=false
-refresh=true
-input=false
-var="aws_region=$AWS_REGION"
-var="postgres_instance_name=$POSTGRES_INSTANCE"
Expand Down

0 comments on commit b1c5be5

Please sign in to comment.