How do I add storage with cloud templating?

by goollan   Last Updated May 16, 2019 06:00 AM

I have a CloudFormation template to spin up an EC2 instance.

    Type: String
    Description: Instance type for RStudio. Default is t2.micro.
      - t2.micro
      - t2.small
      - t2.medium
      - t2.large
    ConstraintDescription: 'Valid instance type in the t2 family'
    Default: t2.micro
    Type: 'AWS::EC2::Image::Id'
    Description: >-
      Amazon Linux Image ID. Default is for 2017.03.01 (HVM). N.B. 
    Default: ami-4fffc834

When I spin up the instance manually, there is an option to add storage. It defaults to 8gb and I'd like to do 16gb instead.

I looked for the syntax to add storage with CloudFormation. What is the syntax to set a volume size other than the default?

Related Questions

Updated October 13, 2018 03:00 AM

Updated April 02, 2015 19:00 PM

Updated January 03, 2019 15:00 PM

Updated October 15, 2018 07:00 AM