title: Lambda and DynamoDB: is not authorized to perform: dynamodb:UpdateItem. User has administrator access
body: <p>The user has AdminitratorAccess. I am able to create and read the data from the dynamoDB.<br />
  I am using serverless tool and using <code>aws-go-mod</code> template.</p>
  <p>Here is the serverless.yml</p>
  <pre><code>service: user-services-go
  frameworkVersion: &quot;&gt;=1.28.0 &lt;2.0.0&quot;
  
  provider:
    name: aws
    runtime: go1.x
    stage: dev
    region: us-east-1
    environment:
      DYNAMODB_USER_TABLE: ${self:custom.dynamodb.userTable}
    iamRoleStatements:
      - Effect: Allow
        Action:
          - dynamodb:Query
          - dynamodb:Scan
          - dynamodb:GetItem
          - dynamodb:PutItem
        Resource: &quot;*&quot;
  
  functions:
    updateUser:
      handler: bin/pkg/updateUser
      events:
        - http:
            method: put
            cors: true
            path: /v1/user/{username}
  
  </code></pre>
  <p>Thank you.</p>