Skip to content

Commit c6c7b98

Browse files
rpoluriRaj Poluri
andauthored
fix output variables (#317)
* output fix when gluedb creation is not enabled * udpate changelog --------- Co-authored-by: Raj Poluri <rpoluri@expediagroup.com>
1 parent 5263b50 commit c6c7b98

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file.
33

44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
55

6+
## [7.10.15] - 2025-05-23
7+
### Changed
8+
- Fix outputs when gluedb creation is disabled.
9+
610
## [7.10.14] - 2025-05-22
711
### Changed
812
- Optional variable to disable glue database prefix.

ouputs.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ output "managed_database_host" {
1414
output "glue_database_names" {
1515
value = compact(concat([
1616
for db in aws_glue_catalog_database.apiary_glue_database : db.name if local.schemas_info_map[db.name]["encryption"] == "AES256"
17-
], [aws_glue_catalog_database.apiary_system_glue_database[0].name]))
17+
], var.disable_glue_db_init ? [aws_glue_catalog_database.apiary_system_glue_database[0].name] : []))
1818
depends_on = [aws_s3_bucket.apiary_data_bucket]
1919
}
2020

2121
output "glue_database_location_uris" {
2222
value = compact(concat([
2323
for db in aws_glue_catalog_database.apiary_glue_database : db.location_uri if local.schemas_info_map[db.name]["encryption"] == "AES256"
24-
], [aws_glue_catalog_database.apiary_system_glue_database[0].location_uri]))
24+
], var.disable_glue_db_init ? [aws_glue_catalog_database.apiary_system_glue_database[0].location_uri] : []))
2525
depends_on = [aws_s3_bucket.apiary_data_bucket]
2626
}
2727

@@ -31,4 +31,4 @@ output "apiary_data_bucket_arns" {
3131

3232
output "apiary_system_bucket_arn" {
3333
value = aws_s3_bucket.apiary_system.arn
34-
}
34+
}

0 commit comments

Comments
 (0)