back
terraform {
required_providers {
aws = ">= 3.35.0"
}
}
top
module "aws_region" {
source = "./modules/aws/d/aws_region"
# endpoint - (optional) is a type of string
endpoint = null
# name - (optional) is a type of string
name = null
}
top
variable "endpoint" {
description = "(optional)"
type = string
default = null
}
variable "name" {
description = "(optional)"
type = string
default = null
}
top
data "aws_region" "this" {
# endpoint - (optional) is a type of string
endpoint = var.endpoint
# name - (optional) is a type of string
name = var.name
}
top
output "description" {
description = "returns a string"
value = data.aws_region.this.description
}
output "endpoint" {
description = "returns a string"
value = data.aws_region.this.endpoint
}
output "id" {
description = "returns a string"
value = data.aws_region.this.id
}
output "name" {
description = "returns a string"
value = data.aws_region.this.name
}
output "this" {
value = aws_region.this
}
top