php - Set EC2 instance Root Device type as SSD -
i creating ec2 instances using aws. able attach ssd drives using config.
'blockdevicemappings' => array( array( 'virtualname' => 'data_volume', 'devicename' => '/dev/sdg', 'ebs' => array( 'volumesize' => 2, 'volumetype' => 'gp2' ) ),
but i'm not able make root device ssd one. tried volumetype , rootdevicetype parameters didn't worked.
any solution this?
you can create ec2 instances ebs ssd root volume console. typically use ruby sdk, so:
ec2.instances.create(:image_id => 'image', :key_name => 'key', :instance_type => 'class', :security_groups => 'group', :count => 1, :block_device_mappings => [{:device_name => '/dev/sda1', :ebs => {:volume_size => 10, :volume_type => 'gp2'}}])
Comments
Post a Comment