layout | page_title | sidebar_current | description |
---|---|---|---|
aws |
AWS: aws_securityhub_invite_accepter |
docs-aws-resource-securityhub-invite-accepter |
Accepts a Security Hub invitation. |
-> 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.
resource "aws_securityhub_account" "example" {}
resource "aws_securityhub_member" "example" {
account_id = "123456789012"
email = "[email protected]"
invite = true
}
resource "aws_securityhub_account" "invitee" {
provider = "aws.invitee"
}
resource "aws_securityhub_invite_accepter" "invitee" {
provider = "aws.invitee"
master_id = "${aws_securityhub_member.example.master_id}"
}
The following arguments are supported:
master_id
- (Required) The account ID of the master Security Hub account whose invitation you're accepting.
The following attributes are exported in addition to the arguments listed above:
id
- Returnssecurityhub-invite-accepter
.
Security Hub invite acceptance can be imported using the word securityhub-invite-accepter
, e.g.
$ terraform import aws_securityhub_invite_acceptor.example securityhub-invite-accepter