AWS GuardDuty Invite Accepter

This page shows how to write Terraform and CloudFormation for GuardDuty Invite Accepter and write them securely.

aws_guardduty_invite_accepter (Terraform)

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

Example Usage from GitHub

guardduty.tf#L25
resource "aws_guardduty_invite_accepter" "member" {
  count = var.guardduty ? 1 : 0

  depends_on = [aws_guardduty_member.member]

  detector_id       = aws_guardduty_detector.member[0].id
member.tf#L12
resource "aws_guardduty_invite_accepter" "member_accepter" {
  count             = var.is_guardduty_member ? 1 : 0
  detector_id       = aws_guardduty_detector.detector.id
  master_account_id = var.master_account_id
}
member.tf#L1
resource "aws_guardduty_invite_accepter" "member_accepter" {
  count             = var.is_guardduty_member ? 1 : 0
  detector_id       = aws_guardduty_detector.detector.id
  master_account_id = var.master_account_id
}
guardduty.tf#L21
resource "aws_guardduty_invite_accepter" "member" {
  count = var.guardduty ? 1 : 0

  depends_on = [aws_guardduty_member.member]
  provider   = aws.account

member.tf#L1
resource "aws_guardduty_invite_accepter" "member_accepter" {
  count             = var.is_guardduty_member ? 1 : 0
  detector_id       = aws_guardduty_detector.detector.id
  master_account_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

Provides a resource to accept a pending GuardDuty invite on creation, ensure the detector has the correct primary account on read, and disassociate with the primary account upon removal.

AWS::GuardDuty::Filter (CloudFormation)

The Filter in GuardDuty can be configured in CloudFormation with the resource name AWS::GuardDuty::Filter. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

An example could not be found in GitHub.

Parameters

Explanation in CloudFormation Registry

The AWS::GuardDuty::Filter resource specifies a new filter defined by the provided findingCriteria.

Frequently asked questions

What is AWS GuardDuty Invite Accepter?

AWS GuardDuty Invite Accepter is a resource for GuardDuty of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.

Where can I find the example code for the AWS GuardDuty Invite Accepter?

For Terraform, the DNXLabs/terraform-aws-security-baseline, andyhaughton/awsmanagement and anish5445/guardduty-multi source code examples are useful. See the Terraform Example section for further details.