» Resource: aws_securityhub_product_subscription

Subscribes to a Security Hub product.

» Example Usage

resource "aws_securityhub_account" "example" {}

data "aws_region" "current" {}

resource "aws_securityhub_product_subscription" "example" {
  depends_on  = ["aws_securityhub_account.example"]
  product_arn = "arn:aws:securityhub:${data.aws_region.current.name}:733251395267:product/alertlogic/althreatmanagement"
}

» Argument Reference

The following arguments are supported:

  • product_arn - (Required) The ARN of the product that generates findings that you want to import into Security Hub - see below.

Currently available products (remember to replace ${var.region} as appropriate):

» Attributes Reference

The following attributes are exported in addition to the arguments listed above:

  • arn - The ARN of a resource that represents your subscription to the product that generates the findings that you want to import into Security Hub.

» Import

Security Hub product subscriptions can be imported in the form product_arn,arn, e.g.

$ terraform import aws_securityhub_product_subscription.example arn:aws:securityhub:eu-west-1:733251395267:product/alertlogic/althreatmanagement,arn:aws:securityhub:eu-west-1:123456789012:product-subscription/alertlogic/althreatmanagement