Skip to content

Auto-generated

This page is generated by terraform-docs at build time from the infra/ repo. Do not edit manually.

Security Hub

Enables Security Hub in a region, subscribes it to the AWS Foundational Security Best Practices standard and disables the controls that do not apply to this estate. Part of the account security baseline (IS-67).

Standards are deliberately not pinned. AWS revises AFSBP in place and the hub follows with auto_enable_controls; the account has done so since 2020 without a surprise, and pinning would turn every new AWS control into a pull request nobody schedules. Sprinto evaluates against the current standard too, so following AWS keeps the two views identical. New controls that do not apply are disabled here, with the reason, as they appear.

Product integrations are only declared where they already exist so an import stays clean; a new hub enables the AWS-service integrations itself.

Requirements

Name Version
terraform >= 1.6.0
aws ~> 6.0

Providers

Name Version
aws 6.66.0

Modules

No modules.

Resources

Name Type
aws_securityhub_account.this resource
aws_securityhub_product_subscription.this resource
aws_securityhub_standards_control.this resource
aws_securityhub_standards_subscription.afsbp resource
aws_region.current data source

Inputs

Name Description Type Default Required
disabled_controls AFSBP control IDs to disable, mapped to the reason recorded on the control (for example ECS.21 = "Linux containers only") map(string) {} no
product_subscriptions Product integrations to manage, as the <company>/<product> part of the product ARN (for example aws/guardduty). Leave empty on a new hub: AWS enables its own integrations automatically. set(string) [] no

Outputs

Name Description
afsbp_subscription_arn ARN of the AFSBP standards subscription
hub_arn ARN of the Security Hub hub