iamRoleStatements still give 502 error after properly indented

This is my serverless.yml

    - Effect: Allow
        - dynamodb:DescribeTable
        - dynamodb:Query
        - dynamodb:Scan
        - dynamodb:GetItem
        - dynamodb:PutItem
        - dynamodb:UpdateItem
        - dynamodb:DeleteItem
      Resource: "arn:aws:dynamodb:us-east-2:*:*"

i checked serverless.yml on github, i read Cloudwatch, it still return this after I modify a bit of serverless:
‘User:arn:aws:sts::841059604273:assumed-role/notes-app-api-prod-us-east-2-lambdaRole/notes-app-api-prod-create is not authorized to perform: dynamodb:PutItem on resource: arn:aws:dynamodb:us-east-2:841059604273:table/notes’,

my error:

{ status: 502,
  statusText: 'Bad Gateway',
  data: { message: 'Internal server error' } }

I read the tutorial https://serverless-stack.com/chapters/test-the-apis.html, but i still stuck with this, what did i do wrong ?

solved it. I simply go attach AdminAccess to my Roles. I learnt from this link: https://stackoverflow.com/questions/34784804/aws-dynamodb-issue-user-is-not-authorized-to-perform-dynamodbputitem-on-resou

Hmm that’s really strange. At a glance, your IAM role looks fine.