Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow removal of cluster name from aurora ssm parameter #1162

Merged
merged 10 commits into from
Nov 7, 2024
2 changes: 1 addition & 1 deletion modules/aurora-postgres/ssm.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
locals {
ssm_path_prefix = format("/%s/%s", var.ssm_path_prefix, module.cluster.id)
ssm_path_prefix = var.ssm_cluster_name_override ? format("/%s", var.ssm_path_prefix) : format("/%s/%s", var.ssm_path_prefix, module.cluster.id)
darrenl33 marked this conversation as resolved.
Show resolved Hide resolved

admin_user_key = format("%s/%s/%s", local.ssm_path_prefix, "admin", "user")
admin_password_key = format("%s/%s/%s", local.ssm_path_prefix, "admin", "password")
Expand Down
6 changes: 6 additions & 0 deletions modules/aurora-postgres/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -352,3 +352,9 @@ variable "backup_window" {
default = "07:00-09:00"
description = "Daily time range during which the backups happen, UTC"
}

variable "ssm_cluster_name_override" {
type = bool
default = false
description = "If set to true, we don't set cluster name into ssm parameter store name"
}