Create IAM Role

Hi everyone!
I have a question.
Using serverless.yml want to create role.
I wrote below code, but I recived error message of “An error occurred while provisioning your stack: testRole - Unknown field version.”.
Please teach me how to create role.

resources:
  Resources:
    testRole:
      Type: AWS::IAM::Role
      Properties:
        RoleName: testRole
        Path: /
        AssumeRolePolicyDocument: 
          version: '2017'
          Statement: 
            - Effect: Allow
              Principal:
                Service:
                  - lambda.amazonaws.com
                  - apigateway.amazonaws.com
              Action: 
                - sts:AssumeRole
        ManagedPolicyArns:
          - arn:aws:iam::aws:policy/CloudWatchLogsFullAccess

I think it should be capitalized i.e. Version

1 Like

Version: ‘2012-10-17’