Skip to content

Commit

Permalink
make SMTP host/port outputs conditional and prompt questions for acti…
Browse files Browse the repository at this point in the history
…vating optional services
  • Loading branch information
baixiac committed Dec 7, 2023
1 parent 005e51f commit 21d2f80
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions config/ses.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
34 changes: 17 additions & 17 deletions config/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,6 @@ variable "postgres_version" {

}

variable "enable_karpenter" {
type = bool
default = false
}

variable "karpenter_version" {
type = string
default = "v0.29.0"
Expand All @@ -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]"
}

0 comments on commit 21d2f80

Please sign in to comment.