variables.tf1.4 KB
View on GitHubvariable "region" {
type = string
description = "AWS region. Consumed by the AWS provider; supplied by the region mixin."
default = ""
}
variable "namespace" {
type = string
description = "Organization namespace (e.g. `acme`)."
default = ""
}
variable "tenant" {
type = string
description = "Tenant/OU name (e.g. `plat`)."
default = ""
}
variable "environment" {
type = string
description = "Environment/region code (e.g. `ue2`)."
default = ""
}
variable "stage" {
type = string
description = "Stage/account name (e.g. `dev`)."
default = ""
}
variable "name" {
type = string
description = "Component name, used to build the resource identifier."
}
variable "hash_key" {
type = string
description = "Name of the table's partition (hash) key attribute."
default = "id"
}
variable "billing_mode" {
type = string
description = "How the table is charged for reads and writes. This example module supports `PAY_PER_REQUEST` only."
default = "PAY_PER_REQUEST"
validation {
condition = var.billing_mode == "PAY_PER_REQUEST"
error_message = "This example module currently supports only PAY_PER_REQUEST (no provisioned capacity inputs)."
}
}
variable "tags" {
type = map(string)
description = "Tags applied to all resources."
default = {}
}