Skip to content

Latest commit

 

History

History
54 lines (37 loc) · 1.38 KB

securityhub_invite_accepter.markdown

File metadata and controls

54 lines (37 loc) · 1.38 KB
layout page_title sidebar_current description
aws
AWS: aws_securityhub_invite_accepter
docs-aws-resource-securityhub-invite-accepter
Accepts a Security Hub invitation.

aws_securityhub_invite_accepter

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

Example Usage

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}"
}

Argument Reference

The following arguments are supported:

  • master_id - (Required) The account ID of the master Security Hub account whose invitation you're accepting.

Attributes Reference

The following attributes are exported in addition to the arguments listed above:

  • id - Returns securityhub-invite-accepter.

Import

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