Skip to content

Commit 19ce6a9

Browse files
authored
Update master_deploy.sh
1 parent 66a0efd commit 19ce6a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

master_deploy.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,9 @@ log "Family updated"
217217
#taskrole and excution role has updated
218218
if [ -z $AWS_ECS_TASK_ROLE_ARN ];
219219
then
220-
template=$(echo $template | jq --arg taskRoleArn arn:aws:iam::$AWS_ACCOUNT_ID:role/$AWS_ECS_TASK_ROLE_ARN '.taskRoleArn=$taskRoleArn')
221-
else
222220
log "No Execution Role defined"
221+
else
222+
template=$(echo $template | jq --arg taskRoleArn arn:aws:iam::$AWS_ACCOUNT_ID:role/$AWS_ECS_TASK_ROLE_ARN '.taskRoleArn=$taskRoleArn')
223223
fi
224224
#template=$(echo $template | jq --arg executionRoleArn arn:aws:iam::$AWS_ACCOUNT_ID:role/ecsTaskExecutionRole '.executionRoleArn=$executionRoleArn')
225225

0 commit comments

Comments
 (0)