chef-boneyard / chef-provisioning-aws

AWS driver and resources for Chef that uses the AWS SDK
Apache License 2.0
142 stars 122 forks source link

Change size of default EBS #520

Closed lfrodrigues closed 7 years ago

lfrodrigues commented 7 years ago

I'm trying to launch a machine with a specific size of root device but amazon always starts the machine with 8GB. Can someone please help me.

Here's what I'm using:

machine 'machine-1' do
    machine_options ({
        :transport_address_location => :private_ip,
        :bootstrap_options => {
          :key_name => 'mykey',
          :instance_type => 't2.medium',
          :block_device_mappings => [
              {
                :device_name => '/dev/xvda',
                :ebs => {
                  :volume_size => 50 # 50 GB
                }
              }
          ]
        }
    })
.......
end
lfrodrigues commented 7 years ago

Figured out how to do it. If anyone lands here the solution is to name the device

/dev/sda1