Update check_extra736, is missing $PROFILE_OPT (#1084)

$PROFILE_OPT was missing in one aws command
This commit is contained in:
soffensive
2022-03-29 09:11:41 +02:00
committed by GitHub
parent cc8cbc89fd
commit fcc14012da

View File

@@ -34,7 +34,7 @@ extra736(){
# Second, we need to check for Customer Managed KMS keys, with or without a configured alias
for keyID in ${LIST_OF_KMS_KEYS}
do
KMS_KEY_MANAGER=$($AWSCLI kms describe-key --region "${regx}" --key-id "${keyID}" --query "KeyMetadata.KeyManager" --output text)
KMS_KEY_MANAGER=$($AWSCLI kms describe-key $PROFILE_OPT --region "${regx}" --key-id "${keyID}" --query "KeyMetadata.KeyManager" --output text)
if [[ "${KMS_KEY_MANAGER}" == "CUSTOMER" ]]
then
CUSTOMER_MANAGED_KMS_KEYS+=( "${keyID}" )