AWS Security Hub Invite Accepter

This page shows how to write Terraform for Security Hub Invite Accepter and write them securely.

aws_securityhub_invite_accepter (Terraform)

The Invite Accepter in Security Hub can be configured in Terraform with the resource name aws_securityhub_invite_accepter. The following sections describe 5 examples of how to use the resource and its parameters.

Example Usage from GitHub

main.tf#L1
resource "aws_securityhub_invite_accepter" "this" {
  master_id = var.master_account_id
}
main.tf#L53
resource "aws_securityhub_invite_accepter" "shaccepter" {
  provider   = aws.member
  depends_on = [aws_securityhub_account.shaccepter]
  master_id  = var.master_account_id
}

main.tf#L59
resource "aws_securityhub_invite_accepter" "shaccepter" {
  provider   = aws.member
  depends_on = [aws_securityhub_account.shaccepter]
  master_id  = var.master_account_id
}

main.tf#L53
resource "aws_securityhub_invite_accepter" "shaccepter" {
  provider   = aws.member
  depends_on = [aws_securityhub_account.shaccepter]
  master_id  = var.master_account_id
}

main.tf#L75
resource "aws_securityhub_invite_accepter" "shaccepter" {
  provider   = aws.member
  depends_on = [aws_securityhub_account.shaccepter]
  master_id  = var.master_account_id
}

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).

Parameters

Explanation in Terraform Registry

-> Note: AWS accounts can only be associated with a single Security Hub master account. Destroying this resource will disassociate the member account from the master account. Accepts a Security Hub invitation.

CloudFormation Example

CloudFormation code does not have the related resource.

Frequently asked questions

What is AWS Security Hub Invite Accepter?

AWS Security Hub Invite Accepter 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 Invite Accepter?

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

security-icon

Automate config file reviews on your commits

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