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
resource "aws_securityhub_invite_accepter" "this" {
master_id = var.master_account_id
}
resource "aws_securityhub_invite_accepter" "shaccepter" {
provider = aws.member
depends_on = [aws_securityhub_account.shaccepter]
master_id = var.master_account_id
}
resource "aws_securityhub_invite_accepter" "shaccepter" {
provider = aws.member
depends_on = [aws_securityhub_account.shaccepter]
master_id = var.master_account_id
}
resource "aws_securityhub_invite_accepter" "shaccepter" {
provider = aws.member
depends_on = [aws_securityhub_account.shaccepter]
master_id = var.master_account_id
}
resource "aws_securityhub_invite_accepter" "shaccepter" {
provider = aws.member
depends_on = [aws_securityhub_account.shaccepter]
master_id = var.master_account_id
}
Parameters
-
id
optional computed - string -
invitation_id
optional computed - string -
master_id
required - string
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.