Skip to content

Commit 84f54c6

Browse files
committed
cleanup
1 parent e83118b commit 84f54c6

File tree

1 file changed

+7
-15
lines changed

1 file changed

+7
-15
lines changed

.github/workflows/deploy-quicksight.yml

+7-15
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
name: deploy-quicksight
22

33
on:
4-
push:
5-
branches:
6-
- AB2D-6529/Deploy_Quicksights
7-
84
workflow_call:
95
inputs:
106
apply:
@@ -47,9 +43,6 @@ jobs:
4743
deploy:
4844
runs-on: self-hosted
4945

50-
env:
51-
ENV: test
52-
5346
steps:
5447
- name: Set environment variables
5548
uses: cmsgov/ab2d-bcda-dpc-platform/actions/aws-params-env-action@main
@@ -71,15 +64,15 @@ jobs:
7164

7265
- name: Set variables for AB2D environment
7366
run: |
74-
if [ "$ENV" = "dev" ]; then
67+
if [ ${{ inputs.environment }} = "dev" ]; then
7568
AB2D_ENV='ab2d-dev'
76-
elif [ "$ENV" = "test" ]; then
69+
elif [ ${{ inputs.environment }} = "test" ]; then
7770
AB2D_ENV='ab2d-east-impl'
78-
elif [ "$ENV" = "sbx" ]; then
71+
elif [ ${{ inputs.environment }} = "sbx" ]; then
7972
AB2D_ENV='ab2d-sbx-sandbox'
80-
elif [ "$ENV" = "prod_test" ]; then
73+
elif [ ${{ inputs.environment }} = "prod_test" ]; then
8174
AB2D_ENV='ab2d-east-prod-test'
82-
elif [ "$ENV" = "prod" ]; then
75+
elif [ ${{ inputs.environment }} = "prod" ]; then
8376
AB2D_ENV='ab2d-east-prod'
8477
else
8578
echo "Unable to determine AB2D environment";
@@ -91,8 +84,7 @@ jobs:
9184
- name: Assume role in AB2D account for this environment
9285
uses: aws-actions/configure-aws-credentials@v4
9386
env:
94-
# ACCOUNT: ${{ inputs.environment == 'prod_test' && 'prod' || inputs.environment }}
95-
ACCOUNT: test
87+
ACCOUNT: ${{ inputs.environment == 'prod_test' && 'prod' || inputs.environment }}
9688
with:
9789
aws-region: ${{ vars.AWS_REGION }}
9890
role-to-assume: arn:aws:iam::${{ secrets[format('{0}_ACCOUNT_ID', env.ACCOUNT)] }}:role/delegatedadmin/developer/ab2d-${{ env.ACCOUNT }}-github-actions
@@ -110,7 +102,7 @@ jobs:
110102
terraform plan -var env=${AB2D_ENV} -out=quicksight.tfplan
111103
112104
- name: Terraform apply
113-
# if: ${{ inputs.apply == true }}
105+
if: ${{ inputs.apply == true }}
114106
run: |
115107
set -e
116108
cd terraform/environments/ab2d/quicksight/

0 commit comments

Comments
 (0)