Skip to content

Latest commit

 

History

History
98 lines (74 loc) · 1.41 KB

aws_region.md

File metadata and controls

98 lines (74 loc) · 1.41 KB

aws_region

back

Index

Terraform

terraform {
  required_providers {
    aws = ">= 3.35.0"
  }
}

top

Example Usage

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

Variables

variable "endpoint" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "name" {
  description = "(optional)"
  type        = string
  default     = null
}

top

Datasource

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

Outputs

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