We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 27ac726 + 9e80eba commit bbeb062Copy full SHA for bbeb062
check-ecs-exec.sh
@@ -235,7 +235,7 @@ ecsExecuteCommand="ecs:ExecuteCommand"
235
ecsExecEvalResult=$(${AWS_CLI_BIN} iam simulate-principal-policy \
236
--policy-source-arn "${MY_IAM_ARN}" \
237
--action-names "${ecsExecuteCommand}" \
238
- --resource-arns "arn:aws:ecs:${AWS_REGION}:${ACCOUNT_ID}:cluster/${CLUSTER_NAME}" \
+ --resource-arns "arn:aws:ecs:${AWS_REGION}:${ACCOUNT_ID}:task/${CLUSTER_NAME}/${TASK_ID}" \
239
--output json \
240
| jq -r ".EvaluationResults[0].EvalDecision")
241
showEvalResult "${ecsExecEvalResult}" "${ecsExecuteCommand}"
0 commit comments