Skip to content

Commit 0e2f135

Browse files
committed
ssm
1 parent 7b54b05 commit 0e2f135

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

azure/templates/post-deploy.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,11 @@ steps:
140140
export APIGEE_APP_ID=973b20ff-6e57-4248-b94f-200a18a03e37
141141
echo "api key- $STATUS_API_KEY"
142142
143+
#Exporting the same profile with which Terraform got deployed
144+
export AWS_PROFILE=apim-dev
145+
aws_account_no="$(aws sts get-caller-identity --query Account --output text)"
146+
echo aws_account_no: $aws_account_no
147+
143148
aws ssm put-parameter \
144149
--name "imms/apigee/non-prod/token" \
145150
--value "$(secret.AccessToken)" \
@@ -157,11 +162,6 @@ steps:
157162
--value "$(INT_CLIENT_SECRET)" \
158163
--type "SecureString" \
159164
--region "eu-west-2"
160-
161-
#Exporting the same profile with which Terraform got deployed
162-
export AWS_PROFILE=apim-dev
163-
aws_account_no="$(aws sts get-caller-identity --query Account --output text)"
164-
echo aws_account_no: $aws_account_no
165165
166166
poetry lock --no-update
167167
poetry install

0 commit comments

Comments
 (0)