Skip to content

Commit

Permalink
Terraform formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
clarissalimab committed Dec 12, 2024
1 parent de9a352 commit 3136091
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions rds-postgres/rds-postgres-login/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down Expand Up @@ -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"
}

0 comments on commit 3136091

Please sign in to comment.