title: CloudFormation yaml - How to force number type?
body: <p>I'm trying to create an ECS task definition as part of a CloudFormation stack.</p>
  <p>My task definition so far looks like this...</p>
  <pre><code>  TaskDefinition:
      Type: AWS::ECS::TaskDefinition
      Properties:
        RequiresCompatibilities:
          - EC2
        ExecutionRoleArn: !Ref MyTaskRole
        ContainerDefinitions:
          - Name: !Ref ServiceName
            Image: amazon/amazon-ecs-sample
            PortMappings:
              - ContainerPort: 3000
                HostPort: 0
                Protocol: tcp
            MemoryReservation: 128
  </code></pre>
  <p>When I try to run this, I get the following error...</p>
  <pre><code>#/ContainerDefinitions/0/MemoryReservation: expected type: Number, found: String
  </code></pre>
  <p>So it seems that CloudFormation is converting 128 to a string, and then the stack fails.</p>
  <p>What is the correct way to define this value so that it remains a number?</p>