title: How to Include/Reference Multiple Resource files in CloudFormation?
body: <p>I am new to cloud formation templates. I am trying to organize the templates based on AWS services so that I can easily manage it. For example, iam-roles in one file, dynamodb tables on another, s3, lambda resources in individual files. When I try to make a master file from these partials I am able to include only one partial in the resource section on <code>Fn::Transform</code>. I need two suggestions, am I going in the right direction? and how to include all the partials into my main.yml?
  <a href="https://i.stack.imgur.com/8XBTC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8XBTC.png" alt="enter image description here" /></a></p>
  <pre><code>Resources:
    &quot;Fn::Transform&quot;:
      Name: 'AWS::Include'
      Parameters:
        Location: 
          Fn::Sub: &quot;s3://s3url/iam-roles.yml&quot;
    &quot;Fn::Transform&quot;:
      Name: 'AWS::Include'
      Parameters:
        Location: 
          Fn::Sub: &quot;s3://s3url/ddbtables.yml&quot;
  </code></pre>
  <p>The above code definitely throws an error. How to merge these partials?</p>