sam-goodwin / punchcard

Type-safe AWS infrastructure.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

contribute back a fix for glue table grants

sam-goodwin opened this issue · comments

commented

Fix this hack:

(this as any).grant = (grantee: iam.IGrantable, actions: string[]) => {
// Hack: override grant to also add catalog and database arns as resources
return iam.Grant.addToPrincipal({
grantee,
resourceArns: [this.tableArn, this.database.databaseArn, this.database.catalogArn],
actions,
});