I am trying to provide user “Guest” to full dynamo db access except tables not owned by “Guest”. I have created the below policy
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"dynamodb:*"
],
"Resource": "*"
},
{
"Effect": "Deny",
"Action": [
"dynamodb:ListTables"
],
"Resource": "*",
"Condition": {
"StringNotEquals": {
"dynamodb:OwnerIAMUser": [
"arn:aws:iam::909090912345:user/Guest"
]
}
}
}
]
}
User “Guest” able to create a new table but can’t view the tables. I am not sure what to pass in the Action section for Deny.
Guest is not authorized to perform: dynamodb:ListTables
Thank you.