Aws Lake Formation : Grant_permissions : Unknown Parameter In Resource.table: "tablewildcard"
Trying to grant lake permissions via a Lambda Function. (Python 3.8) As far as I can see, I have my code as per documentation. Yet hitting a barrage of nonsense errors about parame
Solution 1:
I investigated the issue a bit. And the error is because on lambda, the definition of TableResoures
is (note the missing TableWildcard
on lambda):
"TableResource":{"type":"structure","required":["DatabaseName","Name"],"members":{"DatabaseName":{"shape":"NameString","documentation":"<p>The name of the database for the table. Unique to a Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal. </p>"},"Name":{"shape":"NameString","documentation":"<p>The name of the table.</p>"}},"documentation":"<p>A structure for the table object. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal. </p>"}
In contrast, the latest version on github has:
"TableResource":{
"type":"structure",
"required":["DatabaseName"],
"members":{
"CatalogId":{
"shape":"CatalogIdString",
"documentation":"<p>The identifier for the Data Catalog. By default, it is the account ID of the caller.</p>"
},
"DatabaseName":{
"shape":"NameString",
"documentation":"<p>The name of the database for the table. Unique to a Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal. </p>"
},
"Name":{
"shape":"NameString",
"documentation":"<p>The name of the table.</p>"
},
"TableWildcard":{
"shape":"TableWildcard",
"documentation":"<p>A wildcard object representing every table under a database.</p> <p>At least one of <code>TableResource$Name</code> or <code>TableResource$TableWildcard</code> is required.</p>"
}
}
Seems to me that this is some bug.
Post a Comment for "Aws Lake Formation : Grant_permissions : Unknown Parameter In Resource.table: "tablewildcard""