Regions

A resource type such as an S3 bucket, EC2 instance, or VPC has three distinct regional attributes in Guardrails:

From a Guardrails perspective, a region can be configured in two ways:

  1. Set a region as Enabled or Disabled. Disabling a region stops all resource discovery and remediation, and prevents user actions via IAM policies.
  2. If a region is Enabled, set policies to Allow or Approve a subset of regions. Resources in non-allowed regions generate alarms or are remediated.

[!IMPORTANT] A region can be discovered (enabled) while also being not allowed/approved for use. This lets you discover all regions for visibility while only permitting resources in a subset of regions.

Regional Availability

Regions are defined by the cloud provider:

[!NOTE] Even though a region exists, certain services may not be available there. Before enabling a region for a specific service, verify that the cloud provider offers the service in that region.

Provider-Specific Region Policies

ProviderRegion PolicyNotes
AWSAWS > Account > Regions [Default]YAML list of regions. Wildcard (*) supported.
GCPGCP > Project > Regions [Default]YAML list of regions. Wildcard (*) supported.
AzureAzure > Account > Regions [Default]YAML list of regions. Azure has no region resource type. Discovery targets Resource Groups instead.

Discovery

Guardrails discovers resources in enabled regions and populates the CMDB with their metadata. Any region that is NOT discovered will NOT exist in the CMDB, and Guardrails cannot manage resources in undiscovered regions.

[!NOTE] Custom permissions on the Guardrails IAM role can affect resource discoverability. A resource may show as existing but contain no metadata if the IAM role lacks describe permissions.

Discovery Controls

If a region and service are enabled, resources are discovered automatically. Region discovery is managed by controls that target the account or project:

ProviderDiscovery ControlRegion Policy
AWSAWS > Region > DiscoveryAWS > Account > Regions
GCPGCP > Region > DiscoveryGCP > Project > Regions
GCPGCP > Multi-Region > DiscoveryGCP > Project > Regions

The default value for these policies contains all discoverable regions.

Allowed and Approved Regions

Guardrails has two sets of regional controls: the newer Allowed controls and the older Approved controls. Both restrict which regions resources can exist in, but they use separate policy hierarchies.

Allowed > Region (Newer)

The Allowed > Region policy is part of the newer Allowed control family. Resource types that have been migrated to the Allowed pattern have these policies:

For example:

[!NOTE] Not all resource types have migrated to the Allowed pattern yet. Many AWS services (including EC2), most Azure resources, and GCP resources still use only the Approved Regions policies. Check the specific resource type's policies to see which is available.

Approved > Regions (Older)

The Approved > Regions policy hierarchy uses a cascading default pattern:

  1. Provider-level default: Sets the baseline for all resource types in the provider.

    • AWS > Account > Approved Regions [Default]
    • GCP > Project > Approved Regions [Default]
    • Azure > Subscription > Approved Regions [Default]
  2. Service-level default: Inherits from the provider default. Override to restrict a specific service.

    • AWS > S3 > Approved Regions [Default]
    • AWS > EC2 > Approved Regions [Default]
    • AWS > SNS > Approved Regions [Default]
  3. Resource-level policy: Used by the Approved control to evaluate individual resources. Inherits from the service default.

    • AWS > EC2 > Instance > Approved > Regions
    • AWS > EC2 > Volume > Approved > Regions
    • AWS > EC2 > Snapshot > Approved > Regions

All Approved Regions policies accept a YAML list of regions and support the wildcard operator (*).

Due to the cascading default pattern, you can set regional restrictions with just a few policies:

Example AWS Scenarios

Discover and allow everything in all regions

Do nothing. Guardrails enables all regions in the AWS > Account > Regions policy by default, which cascades to everything else.

Discover everywhere, only allow specific regions for use

Only discover and allow specific regions

Discover all regions but only allow EC2 in US East 1