34 lines
539 B
Terraform
34 lines
539 B
Terraform
|
|
variable "prefix" {
|
||
|
|
type = string
|
||
|
|
}
|
||
|
|
|
||
|
|
variable "profile" {
|
||
|
|
type = string
|
||
|
|
default = "standard_cost_saver"
|
||
|
|
}
|
||
|
|
|
||
|
|
variable "profile_config" {
|
||
|
|
type = object({
|
||
|
|
size = string
|
||
|
|
auto_suspend = number
|
||
|
|
auto_resume = bool
|
||
|
|
initially_suspended = bool
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
locals {
|
||
|
|
warehouse_name = "${var.prefix}_WH"
|
||
|
|
}
|
||
|
|
|
||
|
|
output "warehouse_name" {
|
||
|
|
value = local.warehouse_name
|
||
|
|
}
|
||
|
|
|
||
|
|
output "config" {
|
||
|
|
value = var.profile_config
|
||
|
|
}
|
||
|
|
|
||
|
|
output "planned_objects" {
|
||
|
|
value = ["warehouse:${local.warehouse_name}"]
|
||
|
|
}
|