Skip to content

Commit a474fd9

Browse files
authored
Merge pull request #7 from buildrun-tech/develop
feat: destroy true
2 parents 3a7f602 + e8955a2 commit a474fd9

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/terraform-prod.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -36,23 +36,21 @@ jobs:
3636
with:
3737
role-to-assume: arn:aws:iam::179916804929:role/BuildRun-GithubActions-Role #change to reflect your IAM role’s ARN
3838
role-session-name: GitHub_to_AWS_via_FederatedOIDC
39-
aws-region: ${{ vars.AWS_REGION }}
39+
aws-region: ${{ env.AWS_REGION }}
4040

4141
- name: Read destroy configuration
4242
id: read-destroy-config
4343
run: |
44-
DESTROY_DEV="$(jq -r '.dev' ./infra/destroy_config.json)"
4544
DESTROY_PROD="$(jq -r '.prod' ./infra/destroy_config.json)"
46-
echo "destroy_dev=$(echo $DESTROY_DEV)" >> $GITHUB_OUTPUT
4745
echo "destroy_prod=$(echo $DESTROY_PROD)" >> $GITHUB_OUTPUT
4846
4947
- name: Terraform Init
5048
run: |
5149
cd infra && terraform init \
52-
-backend-config="bucket=${{ vars.TERRAFORM_S3_STATEFILE_BUCKET }}" \
50+
-backend-config="bucket=${{ env.TERRAFORM_S3_STATEFILE_BUCKET }}" \
5351
-backend-config="key=${{ github.event.repository.name }}" \
5452
-backend-config="region=${{ env.AWS_REGION }}" \
55-
-backend-config="dynamodb_table=${{ vars.TERRAFORM_DYNAMODB_LOCK_TABLE }}"
53+
-backend-config="dynamodb_table=${{ env.TERRAFORM_DYNAMODB_LOCK_TABLE }}"
5654
5755
- name: Terraform Validate
5856
run: terraform validate

0 commit comments

Comments
 (0)