Skip to content

Commit a0249df

Browse files
rpoluriRaj Poluri
andauthored
fix catalog producers system db permissions (#310)
* fix catalog producers * add changelog and workflow * cleanup --------- Co-authored-by: Raj Poluri <rpoluri@expediagroup.com>
1 parent 81d211b commit a0249df

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
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.8] - 2025-05-12
7+
### Changed
8+
- Fix catalog producer roles access to system Glue database.
9+
610
## [7.10.7] - 2025-05-08
711
### Changed
812
- Output values to export glue database names and locations.

lf.tf

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -231,11 +231,9 @@ resource "aws_lakeformation_permissions" "catalog_producer_db_permissions" {
231231
}
232232

233233
resource "aws_lakeformation_permissions" "catalog_producer_db_system_permissions" {
234-
for_each = var.disable_glue_db_init && var.create_lf_resource ? tomap({
235-
for schema in local.catalog_producer_schemas : "${schema["schema_name"]}-${schema["producer_arn"]}" => schema
236-
}) : {}
234+
for_each = var.disable_glue_db_init && var.create_lf_resource ? toset(var.lf_catalog_producer_arns) : []
237235

238-
principal = each.value.producer_arn
236+
principal = each.key
239237
permissions = ["DESCRIBE", "CREATE_TABLE"]
240238

241239
database {

0 commit comments

Comments
 (0)