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 256256    printf  " ${COLOR_YELLOW} Not Configured" 
257257  else 
258258    printf  " ${kmsKeyId} " 
259+     kmsKeyArn=$( ${AWS_CLI_BIN}  kms describe-key --key-id $kmsKeyId  --query ' KeyMetadata.Arn' ) 
259260  fi 
260261  printf  " \n" 
261262
@@ -312,7 +313,7 @@ if [[ ! "x${kmsKeyId}" = "xnull" ]]; then
312313  kmsGenerateDataKeyResult=$( ${AWS_CLI_BIN}  iam simulate-principal-policy \
313314    --policy-source-arn " ${MY_IAM_ARN} "  
314315    --action-names " ${kmsGenerateDataKey} "  
315-     --resource-arns " ${kmsKeyId } "  
316+     --resource-arns " ${kmsKeyArn } "  
316317    --output json \ 
317318    |  jq -r " .EvaluationResults[0].EvalDecision" )  
318319  showEvalResult " ${kmsGenerateDataKeyResult} " " ${kmsGenerateDataKey} " 
543544    kmsEvalResult=$( ${AWS_CLI_BIN}  iam simulate-principal-policy \
544545      --policy-source-arn " ${taskRoleArn} "  
545546      --action-names " ${kmsDecrypt} "  
546-       --resource-arns " ${kmsKeyId } "  
547+       --resource-arns " ${kmsKeyArn } "  
547548      --output json \ 
548549      |  jq -r " .EvaluationResults[0].EvalDecision" )  
549550    showEvalResult " ${kmsEvalResult} " " ${kmsDecrypt} " 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments