Enabling AWS Services

Each AWS service in Guardrails has an Enabled policy (e.g., AWS > S3 > Enabled) that controls whether the service is considered "in use" for governance purposes. By default, all services are Disabled.

What the Enabled Policy Controls

Guardrails Permissions

When the Enabled policy is set to Disabled, Guardrails does not create permission grants for that service. Users who receive their cloud permissions through Guardrails will not be able to access the service's resources.

[!NOTE] This only affects users whose permissions are managed through Guardrails IAM. If your users get permissions directly from AWS IAM (outside of Guardrails), the Enabled policy does not restrict their access.

Approved Controls

The Approved > Usage sub-policy for each resource type defaults to Approved if AWS > {Service} > Enabled. When the service Enabled policy is Disabled (or Enabled: Metadata Only), the Approved control marks resources as Not approved.

For example, if AWS > S3 > Enabled is set to Disabled and AWS > S3 > Bucket > Approved is set to Check: Approved, then every S3 bucket in the account will show an Alarm because the bucket's Approved > Usage evaluates to "Not approved: S3 service is disabled."

If the Approved policy is set to an enforce mode (e.g., Enforce: Delete unapproved if new), Guardrails will take action on the unapproved resources.

API Boundary

The Enabled policy feeds into the API boundary calculation (AWS > {Service} > Permissions > Lockdown > API Boundary). When the service is Disabled, its APIs are excluded from IAM boundary policies managed by Guardrails.

What the Enabled Policy Does NOT Control

The Enabled policy does not control CMDB or Discovery. Resources are discovered and tracked in the Guardrails CMDB regardless of the Enabled setting. CMDB and Discovery have their own policies (AWS > {Service} > {Resource} > CMDB).

Policy Values

ValueDescription
EnabledFull governance. Guardrails grants permissions for the service and considers resources approved for use.
Enabled: Metadata OnlyGuardrails grants metadata-level (read-only) permissions only. Resources are treated as unapproved by the Approved > Usage control.
DisabledNo Guardrails permissions are granted for the service. Resources are treated as unapproved by the Approved > Usage control.

Enable a Service

Navigate to Policies and click New Policy Setting. Search for the service's Enabled policy (e.g., AWS > EC2 > Enabled), set the resource scope (account, folder, or workspace root), and set the value to Enabled.

Common service Enabled policies:

PolicyDescription
AWS > IAM > EnabledIdentity and Access Management. Recommended for all accounts.
AWS > EC2 > EnabledElastic Compute Cloud (instances, volumes, AMIs, etc.).
AWS > S3 > EnabledSimple Storage Service (buckets, objects).
AWS > VPC > EnabledVirtual Private Cloud (VPCs, subnets, security groups).
AWS > RDS > EnabledRelational Database Service.
AWS > Lambda > EnabledLambda functions.
AWS > KMS > EnabledKey Management Service.
AWS > CloudTrail > EnabledCloudTrail audit logging.
AWS > SNS > EnabledSimple Notification Service. Required for event handlers.
AWS > Events > EnabledEventBridge. Required for event handlers.

[!TIP] Set Enabled policies at a folder or workspace root level to apply to all accounts at once. You can then override at the account level for exceptions.

Terraform Examples

# AWS > IAM > Enabled
resource "turbot_policy_setting" "aws_iam_enabled" {
  resource = "id-of-account-or-folder"
  type     = "tmod:@turbot/aws-iam#/policy/types/iamEnabled"
  value    = "Enabled"
}

# AWS > EC2 > Enabled
resource "turbot_policy_setting" "aws_ec2_enabled" {
  resource = "id-of-account-or-folder"
  type     = "tmod:@turbot/aws-ec2#/policy/types/ec2Enabled"
  value    = "Enabled"
}

# AWS > S3 > Enabled
resource "turbot_policy_setting" "aws_s3_enabled" {
  resource = "id-of-account-or-folder"
  type     = "tmod:@turbot/aws-s3#/policy/types/s3Enabled"
  value    = "Enabled"
}

[!TIP] For automating service enablement across many services, see the aws_services baseline in the Guardrails Samples repository.