AWS Security Hub Product Subscription

This page shows how to write Terraform for Security Hub Product Subscription and write them securely.

aws_securityhub_product_subscription (Terraform)

The Product Subscription in Security Hub can be configured in Terraform with the resource name aws_securityhub_product_subscription. The following sections describe 2 examples of how to use the resource and its parameters.

Example Usage from GitHub
resource "aws_securityhub_product_subscription" "this" {
  for_each = toset(var.product_subscription_arns)

  product_arn = each.value
resource "aws_securityhub_product_subscription" "this" {
  product_arn = var.product_arn

Review your Terraform file for AWS best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).


Explanation in Terraform Registry

Subscribes to a Security Hub product.

CloudFormation Example

CloudFormation code does not have the related resource.

Frequently asked questions

What is AWS Security Hub Product Subscription?

AWS Security Hub Product Subscription is a resource for Security Hub of Amazon Web Service. Settings can be wrote in Terraform.

Where can I find the example code for the AWS Security Hub Product Subscription?

For Terraform, the plus3it/terraform-aws-tardigrade-security-hub and niveklabs/aws source code examples are useful. See the Terraform Example section for further details.


Automate config file reviews on your commits

Fix issues in your infrastructure as code with auto-generated patches.