title: How to have multiple manage policies in an aws role using cloud formation?
body: <p>I have a following cloud formation script and I want to add two Managed Policies to a Role.</p>
  
  <pre><code>---
  AWSTemplateFormatVersion: '2010-09-09'
  Transform: AWS::Serverless-2016-10-31
  Description: Bringing up the whole stack
  Resources:
  # IAM role
     PublishingActionExecutionRole:
       Type: AWS::IAM::Role
       Properties:
        ManagedPolicyArns:
        - arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole
        - arn:aws:iam::aws:policy/AmazonDynamoDBFullAccess
        AssumeRolePolicyDocument:
          Version: '2012-10-17'
          Statement:
          - Action:
           - sts:AssumeRole
          Effect: Allow
          Principal:
            Service:
            - lambda.amazonaws.com
  </code></pre>
  
  <p>However when I run this script it just add the first policy not the second one.</p>
  
  <p>Any one know the trick to it?</p>