title: How to create EC2 instance with EBS volume in CloudFormation?
body: <p>Hi I am trying to create an Amazon EC2 instance with an EBS volume. I have created a CloudFormation template:</p>
  
  <pre><code>AWSTemplateFormatVersion: "2010-09-09"
  Description: "First EC2 instance"
  Resources:
   FirstLinuxEC2instance:
      Type: AWS::EC2::Instance
      Properties:
        AvailabilityZone: 'ap-southeast-2a'
        ImageId: 'ami-0c1d8842b9bfc767c'
        InstanceInitiatedShutdownBehavior: 'terminate'
        InstanceType: 't2.micro'
        SecurityGroupIds:
          - 'sg-79862305'
        Volumes:
          Device: "/dev/sdf"
          VolumeId: !Ref NewVolume
   NewVolume:
    Type: AWS::EC2::Volume
    Properties:
      Size: 1
      AvailabilityZone: 'ap-southeast-2a'
      Tags:
        - Key: MyTag
          Value: TagValue
    DeletionPolicy: Snapshot
  </code></pre>
  
  <p>When I upload this template I am getting below error.</p>
  
  <blockquote>
    <p>Value of property Volumes must be of type List</p>
  </blockquote>
  
  <p>Can someone help me to figure it out the issue?</p>