Files
Aws-Terraform/envs/prod/variables.tf
T

28 lines
694 B
Terraform

variable "aws_profile" {
description = "Read-only AWS CLI profile used for plan."
type = string
default = "aws-terraform-ro"
}
variable "region" {
description = "Primary production region."
type = string
default = "ap-northeast-1"
}
variable "name_prefix" {
description = "Name prefix passed to the reusable module."
type = string
default = "prod"
}
variable "account_id" {
description = "AWS account ID. Supply with TF_VAR_account_id; do not commit a tfvars file."
type = string
validation {
condition = can(regex("^[0-9]{12}$", var.account_id))
error_message = "account_id must contain exactly 12 digits."
}
}