At the moment when you finish configuring a DynamoDB table the authenticades role creates this lines:
"Effect":"Allow",
"Action":[
"dynamodb:BatchWriteItem",
"dynamodb:DeleteItem",
"dynamodb:PutItem",
"dynamodb:UpdateItem",
"dynamodb:BatchGetItem",
"dynamodb:DescribeTable",
"dynamodb:GetItem",
"dynamodb:ListTables",
"dynamodb:Query",
"dynamodb:Scan"
],
"Resource": [
table1
]
Per table but you can even put all tables in just 1 REsource, this is a waste of memory and dow im getting LimitExceeded error with only 10 tables. My question is: Is there a way of configuring how MobileHub creates this roles or a way of handling this LimitExceeded error?
AWS Mobile Hub just made an enhancement to how the IAM policies for the NoSQL feature (powered by Amazon DynamoDB) are created. We now consolidate the public and private, read and write operations into 4 statements, each of which will reference all the applicable tables and indexes. This results in a much smaller policy. You can update your relevant IAM policies but making any modification to any NoSQL table in your project or by creating a new table