AWS Security Hub Action Target
This page shows how to write Terraform for Security Hub Action Target and write them securely.
aws_securityhub_action_target (Terraform)
The Action Target in Security Hub can be configured in Terraform with the resource name aws_securityhub_action_target
. The following sections describe 3 examples of how to use the resource and its parameters.
Example Usage from GitHub
main.tf#L1
resource "aws_securityhub_action_target" "this" {
name = var.name
identifier = var.identifier
description = var.description
}
security_hub.tf#L3
resource "aws_securityhub_action_target" "send_to_chat" {
depends_on = [aws_securityhub_account.main]
name = "Send to chat"
identifier = "SendToChat"
description = "Custom action sends selected findings to chat"
}
main.tf#L7
resource "aws_securityhub_action_target" "this" {
description = var.description
identifier = var.identifier
name = var.name
}
Parameters
-
arn
optional computed - string -
description
required - string -
id
optional computed - string -
identifier
required - string -
name
required - string
Explanation in Terraform Registry
Creates Security Hub custom action.
CloudFormation Example
CloudFormation code does not have the related resource.
Frequently asked questions
What is AWS Security Hub Action Target?
AWS Security Hub Action Target is a resource for Security Hub of Amazon Web Service. Settings can be wrote in Terraform.
Where can I find the example code for the AWS Security Hub Action Target?
For Terraform, the plus3it/terraform-aws-tardigrade-security-hub, Jimon-s/terraform-example-security-hub and niveklabs/aws source code examples are useful. See the Terraform Example section for further details.