Skip to content

Commit a0463dc

Browse files
Fix duplicate database output definitions
- Remove duplicate database_endpoint, database_username, database_password, database_name outputs - Keep only the first definition of each output to avoid Terraform validation errors - Maintain database_dbi_resource_id and other unique outputs
1 parent 9deeef0 commit a0463dc

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

outputs.tf

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,6 @@ output "iam_instance_profile_name" {
127127
description = "The name of the IAM instance profile attached to TFE EC2 instances."
128128
}
129129

130-
output "database_endpoint" {
131-
value = local.database.endpoint
132-
description = "The connection endpoint of the PostgreSQL database."
133-
sensitive = true
134-
}
135-
136130
output "database_dbi_resource_id" {
137131
value = local.enable_database_module ? module.database[0].dbi_resource_id : (
138132
var.enable_aurora ? module.aurora_database[0].dbi_resource_id : ""
@@ -166,21 +160,3 @@ output "tfe_autoscaling_group_name" {
166160
description = "The name of the autoscaling group for TFE instances."
167161
}
168162

169-
output "database_username" {
170-
value = local.database.username
171-
description = "The master username for the PostgreSQL database."
172-
sensitive = true
173-
}
174-
175-
output "database_password" {
176-
value = local.database.password
177-
description = "The master password for the PostgreSQL database."
178-
sensitive = true
179-
}
180-
181-
output "database_name" {
182-
value = local.database.name
183-
description = "The name of the PostgreSQL database."
184-
sensitive = true
185-
}
186-

0 commit comments

Comments
 (0)