我正在使用下面的代码从 dyanoDB 中读取
import boto3
session = boto3.Session(
aws_access_key_id='XXXXXXXXXXXXXXXXXXXX',
aws_secret_access_key='XXXXXXXXXXXXXXXXXXXXXXX')
dynamodb = session.resource('dynamodb')
table = dynamodb.Table('Employee')
resp = table.get_item(Key={"Empid": 551554297})
此用户具有 AWSAdmin 访问权限、DynamoDB 完全访问权限和 DyanamoDB 读取访问权限但在运行代码时我仍然遇到错误
botocore.exceptions.ClientError: An error occurred (AccessDeniedException)
when calling the GetItem operation: User:
arn:aws:iam::944198216610:user/cduser is not authorized to perform:
dynamodb:GetItem on resource: arn:aws:dynamodb:us-east-
1:944198216610:table/Employee
有人可以帮我弄清楚我在这里做错了什么吗?