diff --git a/config/ses.tf b/config/ses.tf index 82d50c5..471165a 100644 --- a/config/ses.tf +++ b/config/ses.tf @@ -99,9 +99,9 @@ output "radar_base_smtp_password" { } output "radar_base_smtp_host" { - value = "email-smtp.${var.AWS_REGION}.amazonaws.com" + value = var.enable_ses ? "email-smtp.${var.AWS_REGION}.amazonaws.com" : null } output "radar_base_smtp_port" { - value = 587 + value = var.enable_ses ? 587 : null } \ No newline at end of file diff --git a/config/variables.tf b/config/variables.tf index 1a652e4..fcf2883 100644 --- a/config/variables.tf +++ b/config/variables.tf @@ -76,11 +76,6 @@ variable "postgres_version" { } -variable "enable_karpenter" { - type = bool - default = false -} - variable "karpenter_version" { type = string default = "v0.29.0" @@ -93,32 +88,37 @@ variable "radar_postgres_password" { sensitive = true } +variable "enable_karpenter" { + type = bool + description = "Do you need Karpenter? [true, false]" +} + variable "enable_msk" { - type = bool - default = false + type = bool + description = "Do you need MSK? [true, false]" } variable "enable_rds" { - type = bool - default = false + type = bool + description = "Do you need RDS? [true, false]" } variable "enable_route53" { - type = bool - default = false + type = bool + description = "Do you need Route53? [true, false]" } variable "enable_ses" { - type = bool - default = false + type = bool + description = "Do you need SES? [true, false]" } variable "enable_s3" { - type = bool - default = false + type = bool + description = "Do you need S3? [true, false]" } variable "enable_eip" { - type = bool - default = false + type = bool + description = "Do you need EIP? [true, false]" } \ No newline at end of file