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

This resource supports the following arguments:

Amazon maintains a list of Product integrations in AWS Security Hub that changes over time. Any of the products on the linked Available AWS service integrations or Available third-party partner product integrations can be configured using aws_securityhub_product_subscription.

Available products can also be listed by running the AWS CLI command aws securityhub describe-products.

A subset of currently available products (remember to replace ${var.region} as appropriate) includes:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import Security Hub product subscriptions using product_arn,arn. For example:

import {
  to = aws_securityhub_product_subscription.example
  id = "arn:aws:securityhub:eu-west-1:733251395267:product/alertlogic/althreatmanagement,arn:aws:securityhub:eu-west-1:123456789012:product-subscription/alertlogic/althreatmanagement"
}

Using terraform import, import Security Hub product subscriptions using product_arn,arn. For example:

% 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