Skip to content

Commit e0d17f7

Browse files
committed
updated makefile commands
1 parent 59ac6db commit e0d17f7

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

azure/templates/post-deploy.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ parameters:
88
- name: tf_dir
99
type: string
1010
default: "terraform"
11+
- name: tf_environment
12+
type: string
13+
default: "green"
1114

1215
steps:
1316
- ${{ if parameters.is_ptl }}:
@@ -50,7 +53,7 @@ steps:
5053
5154
pr_no=$(echo $service_name | { grep -oE '[0-9]+$' || true; })
5255
if [ -z $pr_no ]; then
53-
workspace=$APIGEE_ENVIRONMENT
56+
workspace=${{ parameters.tf_environment }}
5457
else
5558
workspace=pr-$pr_no
5659
fi
@@ -64,8 +67,11 @@ steps:
6467
echo "Moving to dir: ${{ parameters.tf_dir }}"
6568
cd ${{ parameters.tf_dir }}
6669
70+
=immunisation-preprod-terraform-state-files
71+
6772
make init
68-
make apply aws_account_no=${aws_account_no} environment=$workspace
73+
make plan environment=$workspace bucket_name=immunisation-preprod-terraform-state-files
74+
# make apply aws_account_no=${aws_account_no} environment=$workspace
6975
7076
AWS_DOMAIN_NAME=$(make -s output name=service_domain_name)
7177
IMMS_DELTA_TABLE_NAME=$(make -s output name=imms_delta_table_name)

0 commit comments

Comments
 (0)