mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-22 20:11:53 +00:00
chore(aws): Set scan_unused_services False by default (#5425)
This commit is contained in:
@@ -84,7 +84,7 @@ class AwsProvider(Provider):
|
||||
profile: str = None,
|
||||
regions: set = set(),
|
||||
organizations_role_arn: str = None,
|
||||
scan_unused_services: bool = None,
|
||||
scan_unused_services: bool = False,
|
||||
resource_tags: list[str] = [],
|
||||
resource_arn: list[str] = [],
|
||||
audit_config: dict = {},
|
||||
@@ -106,7 +106,7 @@ class AwsProvider(Provider):
|
||||
- profile: The name of the AWS CLI profile to use.
|
||||
- regions: A set of regions to audit.
|
||||
- organizations_role_arn: The ARN of the AWS Organizations IAM role to assume.
|
||||
- scan_unused_services: A boolean indicating whether to scan unused services.
|
||||
- scan_unused_services: A boolean indicating whether to scan unused services. False by default.
|
||||
- resource_tags: A list of tags to filter the resources to audit.
|
||||
- resource_arn: A list of ARNs of the resources to audit.
|
||||
- audit_config: The audit configuration.
|
||||
@@ -122,6 +122,7 @@ class AwsProvider(Provider):
|
||||
- ArgumentTypeError: If the input role session name is invalid.
|
||||
|
||||
"""
|
||||
|
||||
logger.info("Initializing AWS provider ...")
|
||||
|
||||
######## AWS Session
|
||||
|
||||
@@ -451,7 +451,7 @@ class TestAWSProvider:
|
||||
aws_provider = AwsProvider(mfa=mfa)
|
||||
|
||||
assert aws_provider.type == "aws"
|
||||
assert aws_provider.scan_unused_services is None
|
||||
assert aws_provider.scan_unused_services is False
|
||||
assert aws_provider.audit_config == {}
|
||||
assert (
|
||||
aws_provider.session.current_session.region_name == AWS_REGION_US_EAST_1
|
||||
|
||||
Reference in New Issue
Block a user