Accepts a Security Hub invitation.
resource "aws_securityhub_account" "example" {}
resource "aws_securityhub_member" "example" {
account_id = "123456789012"
email = "example@example.com"
invite = true
}
resource "aws_securityhub_account" "invitee" {
provider = "aws.invitee"
}
resource "aws_securityhub_invite_accepter" "invitee" {
provider = "aws.invitee"
depends_on = [aws_securityhub_account.invitee]
master_id = aws_securityhub_member.example.master_id
}
This resource supports the following arguments:
master_id
- (Required) The account ID of the master Security Hub account whose invitation you're accepting.This resource exports the following attributes in addition to the arguments above:
invitation_id
- The ID of the invitation.In Terraform v1.5.0 and later, use an import
block to import Security Hub invite acceptance using the account ID. For example:
import {
to = aws_securityhub_invite_accepter.example
id = "123456789012"
}
Using terraform import
, import Security Hub invite acceptance using the account ID. For example:
% terraform import aws_securityhub_invite_accepter.example 123456789012