Resource: aws_securityhub_member

Provides a Security Hub member resource.

Example Usage

resource "aws_securityhub_account" "example" {}

resource "aws_securityhub_member" "example" {
  depends_on = [aws_securityhub_account.example]
  account_id = "123456789012"
  email      = "example@example.com"
  invite     = true
}

Argument Reference

This resource supports the following arguments:

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 members using their account ID. For example:

import {
  to = aws_securityhub_member.example
  id = "123456789012"
}

Using terraform import, import Security Hub members using their account ID. For example:

% terraform import aws_securityhub_member.example 123456789012