From 31360910e9ec1f9d538975321b44d5cab269b324 Mon Sep 17 00:00:00 2001 From: Clarissa Borges Date: Thu, 12 Dec 2024 14:14:52 -0300 Subject: [PATCH] Terraform formatting --- rds-postgres/rds-postgres-login/main.tf | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/rds-postgres/rds-postgres-login/main.tf b/rds-postgres/rds-postgres-login/main.tf index 05f891c..d266f79 100644 --- a/rds-postgres/rds-postgres-login/main.tf +++ b/rds-postgres/rds-postgres-login/main.tf @@ -34,10 +34,10 @@ module "rotation" { } variables = { - ADMIN_LOGIN_SECRET_ARN = var.admin_login_secret_arn - ALTERNATE_USERNAME = coalesce(var.alternate_username, "${var.username}_alt") - GRANTS = jsonencode(var.grants) - PRIMARY_USERNAME = var.username + ADMIN_LOGIN_SECRET_ARN = var.admin_login_secret_arn + ALTERNATE_USERNAME = coalesce(var.alternate_username, "${var.username}_alt") + GRANTS = jsonencode(var.grants) + PRIMARY_USERNAME = var.username DATABASE_URL_SECRET_KEY = local.database_url_secret_key } } @@ -101,6 +101,6 @@ data "aws_kms_key" "admin_login" { } locals { - full_name = join("-", ["rds-postgres", var.database.identifier, var.username]) + full_name = join("-", ["rds-postgres", var.database.identifier, var.username]) database_url_secret_key = var.replica ? "REPLICA_DATABASE_URL" : "DATABASE_URL" }