This is my serverless.yml
iamRoleStatements:
- Effect: Allow
Action:
- 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 ?