Glue: Creation of partition indexes fails if the table and account permissions are managed with Lakeformation #21415
Labels
@aws-cdk/aws-glue
Related to AWS Glue
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
p2
Describe the bug
After this merge was made:
#17998
We got the ability to add partition indexes, however, if I have a data lake in my account and manage the permissions via Lake Formation, I get the following error on deployment in cloud trail:
And I can see this in the console in the deleted stack:
From what i can tell the custom resource created by CDK for this operation is deleted upon fail, so I can't see the policy it has. Also not sure how to grant permissions in advance if this doesn't exist.
Expected Behavior
A role/policy can be provided to the table construct so that we can provide LF permissions in advance.
Current Behavior
The custom resource is created with a policy we have no control over, therefore it is not possible to add index partitions to a data lake managed by LF.
Reproduction Steps
It's tricky to add these steps as a whole data lake would have to be created for this.
Possible Solution
A role/policy can be provided to the table construct so that we can provide LF permissions in advance.
Additional Information/Context
No response
CDK CLI Version
1.163.2 (build 1a28d63)
Framework Version
No response
Node.js Version
N/A
OS
N/A
Language
Typescript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: