File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 256
256
printf " ${COLOR_YELLOW} Not Configured"
257
257
else
258
258
printf " ${kmsKeyId} "
259
+ kmsKeyArn=$( ${AWS_CLI_BIN} kms describe-key --key-id $kmsKeyId --query ' KeyMetadata.Arn' --output text)
259
260
fi
260
261
printf " \n"
261
262
@@ -312,7 +313,7 @@ if [[ ! "x${kmsKeyId}" = "xnull" ]]; then
312
313
kmsGenerateDataKeyResult=$( ${AWS_CLI_BIN} iam simulate-principal-policy \
313
314
--policy-source-arn " ${MY_IAM_ARN} " \
314
315
--action-names " ${kmsGenerateDataKey} " \
315
- --resource-arns " ${kmsKeyId } " \
316
+ --resource-arns " ${kmsKeyArn } " \
316
317
--output json \
317
318
| jq -r " .EvaluationResults[0].EvalDecision" )
318
319
showEvalResult " ${kmsGenerateDataKeyResult} " " ${kmsGenerateDataKey} "
543
544
kmsEvalResult=$( ${AWS_CLI_BIN} iam simulate-principal-policy \
544
545
--policy-source-arn " ${taskRoleArn} " \
545
546
--action-names " ${kmsDecrypt} " \
546
- --resource-arns " ${kmsKeyId } " \
547
+ --resource-arns " ${kmsKeyArn } " \
547
548
--output json \
548
549
| jq -r " .EvaluationResults[0].EvalDecision" )
549
550
showEvalResult " ${kmsEvalResult} " " ${kmsDecrypt} "
You can’t perform that action at this time.
0 commit comments