Resource: aws_securityhub_action_target

Creates Security Hub custom action.

Example Usage

resource "aws_securityhub_account" "example" {}

resource "aws_securityhub_action_target" "example" {
  depends_on  = [aws_securityhub_account.example]
  name        = "Send notification to chat"
  identifier  = "SendToChat"
  description = "This is custom action sends selected findings to chat"
}

Argument Reference

This resource supports the following arguments:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import Security Hub custom action using the action target ARN. For example:

import {
  to = aws_securityhub_action_target.example
  id = "arn:aws:securityhub:eu-west-1:312940875350:action/custom/a"
}

Using terraform import, import Security Hub custom action using the action target ARN. For example:

% terraform import aws_securityhub_action_target.example arn:aws:securityhub:eu-west-1:312940875350:action/custom/a