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
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
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
}
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
}
resource "aws_guardduty_invite_accepter" "member" {
count = var.guardduty ? 1 : 0
depends_on = [aws_guardduty_member.member]
provider = aws.account
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
}
Parameters
-
detector_id
required - string -
id
optional computed - string -
master_account_id
required - string -
timeouts
single block-
create
optional - string
-
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
-
Action
required - String -
Description
required - String -
DetectorId
required - String -
FindingCriteria
required - FindingCriteria -
Rank
required - Integer -
Name
required - String
Explanation in CloudFormation Registry
The
AWS::GuardDuty::Filter
resource specifies a new filter defined by the providedfindingCriteria
.
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.