aws-samples / aws-data-mesh-utils

Apache License 2.0
85 stars 22 forks source link

DataMeshConsumer role has no access to shared data product #26

Open SamuelBucheliZ opened 10 months ago

SamuelBucheliZ commented 10 months ago

We experimented with the aws-data-mesh-utils to create a simple setup similar to the one outlined in the documentation here.

However, we noticed that the DataMeshConsumer role does not seem to have access to the shared data product (it can see the Glue database, but not the shared Glue table due to insufficient Lake Formation permissions). The reason for this seems to be that the approve-subscription step grants Lake Formation permissions to the consumer account as principal, and not to the DataMeshConsumer IAM role as principal.

Is this the intended setup? From what I can see in the code, the request-access step uses the requesting account ID as the subscriber principal in the DynamoDB table entry and in the subsequent approve-subscription step, this account is used as the principal the Lake Formation permissions are granted to.