mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-10 14:55:00 +00:00
Update check_extra736, is missing $PROFILE_OPT (#1084)
$PROFILE_OPT was missing in one aws command
This commit is contained in:
@@ -34,7 +34,7 @@ extra736(){
|
|||||||
# Second, we need to check for Customer Managed KMS keys, with or without a configured alias
|
# Second, we need to check for Customer Managed KMS keys, with or without a configured alias
|
||||||
for keyID in ${LIST_OF_KMS_KEYS}
|
for keyID in ${LIST_OF_KMS_KEYS}
|
||||||
do
|
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" ]]
|
if [[ "${KMS_KEY_MANAGER}" == "CUSTOMER" ]]
|
||||||
then
|
then
|
||||||
CUSTOMER_MANAGED_KMS_KEYS+=( "${keyID}" )
|
CUSTOMER_MANAGED_KMS_KEYS+=( "${keyID}" )
|
||||||
|
|||||||
Reference in New Issue
Block a user