Files
terraform-modules/remote-state/variables.tf

60 lines
1.4 KiB
HCL

## Naming
variable "name_prefix" {
description = "Resource names prefixed by this string."
type = string
nullable = true
default = null
}
## Bucket options
variable "bucket_name_override" {
description = "Explicit name for the remote state bucket. If not specified, the bucket will be named as {name_prefix}-{region_name}-states"
type = string
nullable = true
default = null
}
## DynamoDB Table for locks
variable "table_name_override" {
description = "Explicit name for the remote state lock DynamoDB table. If not specified, the table will be named as {name_prefix}-{region_name}-tf-state-locks"
type = string
nullable = true
default = null
}
variable "table_encryption_at_rest" {
description = "Wheather or not apply encryption at rest for the DynamoDB."
type = bool
default = false
}
variable "table_billing_mode" {
description = "Table billing mode. Can be PAY_PER_REQUEST or PROVISIONED"
type = string
default = "PAY_PER_REQUEST"
}
variable "table_write_capacity" {
description = "(Optional) The number of write units for the lock table. If the billing_mode is PROVISIONED, this field is required"
type = number
default = 0
}
variable "table_read_capacity" {
description = "(Optional) The number of read units for this table. If the billing_mode is PROVISIONED, this field is required"
type = number
default = 0
}