Skip to content

Resource: awsSecurityhubAccount

Enables Security Hub for this AWS account.

\~> NOTE: Destroying this resource will disable Security Hub for this AWS account.

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.securityhubAccount.SecurityhubAccount(this, "example", {});

Argument Reference

  • enableDefaultStandards - (Optional) Whether to enable the security standards that Security Hub has designated as automatically enabled including: awsFoundationalSecurityBestPracticesV100 and cisAwsFoundationsBenchmarkV120. Defaults to true.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • id - AWS Account ID.

Import

An existing Security Hub enabled account can be imported using the AWS account ID, e.g.,

$ terraform import aws_securityhub_account.example 123456789012