I am trying to create and attach an EBS volume on instance creation but I am getting error of no option :ebs , I am able to do this from AWS console so there should be some way with which I can create instance using a volume as disk
instance = ec2.instances.create(:image_id => ami-aa***,
:key_name => ec2.key_pairs["Dev-node"].name,
:ebs => {
:volume_size => 20, #size in GBs
:delete_on_termination => true
},
:instance_type => 't1.micro')