title: Value of property Roles must be of type List of String || AWS SAM
body: <p>While Trying to Deploy AWS SAM the Stack creation is failing with the following error:</p>
  <p><strong>Value of property Roles must be of type List of String</strong></p>
  <p>As the Template file is very big I am just giving the part for the Policies Section</p>
  <pre><code>  Policies:
      Type: AWS::IAM::Policy
      Properties:
        PolicyName: !Join ['',['lambdaExecutionPolicy',!FindInMap [Variables,Vid,value]]]
        PolicyDocument:
          Version: '2012-10-17'
          Statement:
            - Effect: Allow
              Action: 'dynamodb:Query'
              Resource: '*'
            - Effect: Allow
              Action: 'logs:*'
              Resource: 'arn:aws:logs:*:*:*'
            - Effect: Allow
              Action:
                - 's3:GetObject'
                - 's3:PutObject'
              Resource: 'arn:aws:s3:::*'
            - Effect: Allow
              Action:
                - 'logs:CreateLogGroup'
                - 'logs:CreateLogStream'
                - 'logs:PutLogEvents'
              Resource: '*'
            - Effect: Allow
              Action:
                - 'logs:CreateLogGroup'
                - 'logs:CreateLogStream'
                - 'logs:PutLogEvents'
              Resource: '*'
            - Effect: Allow
              Action: 'sns:Publish'
              Resource: !Ref mysubscription
        Roles: !Ref lambdaexecutionrole'
  </code></pre>
  <p>While Executing the CFT <a href="https://i.stack.imgur.com/EES6B.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EES6B.png" alt="enter image description here" /></a></p>