This repository was archived by the owner on Aug 27, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,8 @@ aws cloudformation wait stack-create-complete \
3131# Get the value of the ExecutionRoleArn Output
3232export STACK_ROLE_NAME=$(aws cloudformation describe-stacks \
3333 --stack-name domain-resource-execution-role \
34- | jq -r '.Stacks[] | select(.StackName == "domain-resource-execution-role") | .Outputs[] | select(.OutputKey == "ExecutionRoleArn") | .OutputValue')
34+ --query "Stacks[?StackName=='domain-resource-execution-role'].Outputs[0][?OutputKey=='ExecutionRoleArn'].OutputValue" \
35+ --output text)
3536
3637# Register the domain resource
3738aws cloudformation register-type \
@@ -58,7 +59,8 @@ aws cloudformation wait stack-create-complete \
5859# Get the value of the ExecutionRoleArn Output
5960export STACK_ROLE_NAME=$(aws cloudformation describe-stacks \
6061 --stack-name repository-resource-execution-role \
61- | jq -r '.Stacks[] | select(.StackName == "repository-resource-execution-role") | .Outputs[] | select(.OutputKey == "ExecutionRoleArn") | .OutputValue')
62+ --query "Stacks[?StackName=='repository-resource-execution-role'].Outputs[0][?OutputKey=='ExecutionRoleArn'].OutputValue" \
63+ --output text)
6264
6365# Register the repository resource
6466aws cloudformation register-type \
You can’t perform that action at this time.
0 commit comments