mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-18 01:14:16 +00:00
Changed Route53 checks7152 and 7153 to INFO when no domains found
This commit is contained in:
1 parent
d3e50169d9
commit
d65eabcd9e
2 files changed
+4
-3
No files matched your search
@@ -36,7 +36,7 @@ CHECK_DOC_extra7152='https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/d
|
||||
CHECK_CAF_EPIC_extra7152='Data Protection'
|
||||
|
||||
extra7152(){
|
||||
echo "Route53 is a global service, looking for domains in US-EAST-1"
|
||||
# echo "Route53 is a global service, looking for domains in US-EAST-1"
|
||||
DOMAIN_NAMES=$($AWSCLI route53domains list-domains $PROFILE_OPT --region us-east-1 --query 'Domains[*].DomainName' --output text )
|
||||
if [[ $DOMAIN_NAMES ]];then
|
||||
for domain_name in $DOMAIN_NAMES;do
|
||||
@@ -48,6 +48,6 @@ extra7152(){
|
||||
fi
|
||||
done
|
||||
else
|
||||
textPass "$regx: No Domain Names found" "$regx"
|
||||
textInfo "$regx: No Domain Names found" "$regx"
|
||||
fi
|
||||
}
|
||||
@@ -34,6 +34,7 @@ CHECK_CAF_EPIC_extra7153='Data Protection'
|
||||
|
||||
extra7153(){
|
||||
# Route53 is a global service, looking for domains in US-EAST-1
|
||||
# this is also valid for GovCloud https://docs.aws.amazon.com/govcloud-us/latest/UserGuide/setting-up-route53.html
|
||||
DOMAIN_NAMES=$($AWSCLI route53domains list-domains $PROFILE_OPT --region us-east-1 --query 'Domains[*].DomainName' --output text )
|
||||
if [[ $DOMAIN_NAMES ]];then
|
||||
for domain_name in $DOMAIN_NAMES;do
|
||||
@@ -46,6 +47,6 @@ extra7153(){
|
||||
fi
|
||||
done
|
||||
else
|
||||
textPass "$regx: No Domain Names found" "$regx"
|
||||
textInfo "$regx: No Domain Names found" "$regx"
|
||||
fi
|
||||
}
|
||||
Reference in new issue
Block a user