Skip to content

Commit

Permalink
use a empty string default instead
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaWilkes committed Sep 5, 2024
1 parent 32061dc commit 64c8247
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ resource "aws_security_group_rule" "postgres_access_from_proxy" {
resource "commonfate_proxy_rds_database" "database" {
proxy_id = var.proxy_id

name = var.name
name = var.name == "" ? var.database : var.name
instance_id = var.rds_instance_identifier
endpoint = data.aws_db_instance.database.endpoint
database = var.database
Expand Down
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ variable "rds_instance_identifier" {
variable "name" {
description = "A human readable name to give the RDS database resource in Common Fate. Defaults to the database name."
type = string
default = var.database
default = ""
}

variable "database" {
Expand Down

0 comments on commit 64c8247

Please sign in to comment.