Skip to main content
By default Prowler is able to scan the following AWS partitions:
  • Commercial: aws
  • China: aws-cn
  • European Sovereign Cloud: aws-eusc
  • GovCloud (US): aws-us-gov
To check the available regions for each partition and service, refer to: aws_regions_by_service.json

Scanning AWS China, European Sovereign Cloud and GovCloud Partitions in Prowler

When scanning the China (aws-cn), European Sovereign Cloud (aws-eusc) or GovCloud (aws-us-gov) partitions, ensure one of the following:
  • Your AWS credentials include a valid region within the desired partition.
  • Specify the regions to audit within that partition using the -f/--region flag.
  • Declare the partition with the PROWLER_AWS_PARTITION environment variable, set to aws, aws-cn, aws-eusc or aws-us-gov.
Refer to: https://boto3.amazonaws.com/v1/documentation/api/latest/guide/credentials.html#configuring-credentials for more information about the AWS credential configuration.

Declaring the Partition

PROWLER_AWS_PARTITION tells Prowler which partition the scan runs against, without relying on a region being configured:
It matters most where nothing else does. Resolving an identity means calling STS before anything is known about the credentials, and with no region configured Prowler would otherwise start from the commercial endpoints. Declaring the partition makes that first call go to the right place, which is the difference between a scan that starts and one that fails on an endpoint the credentials cannot use. A region configured for the session still wins when it belongs to the declared partition, so a deployment in us-gov-west-1 is not sent to us-gov-east-1. A region belonging to a different partition is ignored, since a partition that has been declared explicitly is the more deliberate statement of the two.
Set it wherever the scan runs. For deployments that scan from containers, that means the environment of the containers doing the scanning, not only the one accepting the request.

Scanning Specific Regions

To scan a particular AWS region with Prowler, use:

Excluding Specific Regions

To scan all supported AWS regions except a specific subset, use the --excluded-region flag:
You can also configure the exclusion list with the PROWLER_AWS_DISALLOWED_REGIONS environment variable as a comma-separated list:
Or with the AWS provider configuration in config.yaml:
When more than one source is set, precedence is:
  1. --excluded-region
  2. PROWLER_AWS_DISALLOWED_REGIONS
  3. aws.disallowed_regions in config.yaml
For Prowler Local Server or API-triggered scans, set PROWLER_AWS_DISALLOWED_REGIONS in the runtime environment of the backend scan containers such as api and worker. The ui container does not enforce AWS region selection.

AWS Credentials Configuration

For details on configuring AWS credentials, refer to the following Botocore file.

Scanning AWS Partitions in Prowler

AWS China

To scan an account in the AWS China partition (aws-cn):
  • By using the -f/--region flag:
  • By using the region configured in your AWS profile at ~/.aws/credentials or ~/.aws/config:
With this configuration, all partition regions will be scanned without needing the -f/--region flag

AWS GovCloud (US)

To scan an account in the AWS GovCloud (US) partition (aws-us-gov):
  • By using the -f/--region flag:
  • By using the region configured in your AWS profile at ~/.aws/credentials or ~/.aws/config:
With this configuration, all partition regions will be scanned without needing the -f/--region flag

AWS European Sovereign Cloud

To scan an account in the AWS European Sovereign Cloud partition (aws-eusc):
  • By using the -f/--region flag:
  • By using the region configured in your AWS profile at ~/.aws/credentials or ~/.aws/config:
With this configuration, all partition regions will be scanned without needing the -f/--region flag

AWS ISO (US & Europe)

The AWS ISO partitions—commonly referred to as “secret partitions”—are air-gapped from the Internet, and Prowler does not have a built-in way to scan them. To audit an AWS ISO partition, manually update aws_regions_by_service.json to include the partition, region, and services. For example: