Resource: aws_shield_application_layer_automatic_response

Terraform resource for managing an AWS Shield Application Layer Automatic Response for automatic DDoS mitigation.

Example Usage

Basic Usage

data "aws_region" "current" {}
data "aws_caller_identity" "current" {}
data "aws_partition" "current" {}

variable "distribution_id" {
  type        = "string"
  description = "The Cloudfront Distribution on which to enable the Application Layer Automatic Response."
}

resource "aws_shield_application_layer_automatic_response" "example" {
  resource_arn = "arn:${data.aws_partition.current.partition}:cloudfront:${data.aws_caller_identity.current.account_id}:distribution/${var.distribution_id}"
  action       = "COUNT"
}

Argument Reference

The following arguments are required:

Attribute Reference

This resource exports no additional attributes.