back
terraform {
required_providers {
aws = ">= 3.35.0"
}
}
top
module "aws_shield_protection" {
source = "./modules/aws/r/aws_shield_protection"
# name - (required) is a type of string
name = null
# resource_arn - (required) is a type of string
resource_arn = null
}
top
variable "name" {
description = "(required)"
type = string
}
variable "resource_arn" {
description = "(required)"
type = string
}
top
resource "aws_shield_protection" "this" {
# name - (required) is a type of string
name = var.name
# resource_arn - (required) is a type of string
resource_arn = var.resource_arn
}
top
output "id" {
description = "returns a string"
value = aws_shield_protection.this.id
}
output "this" {
value = aws_shield_protection.this
}
top