vendor/bundle/ruby/1.8/gems/aws-2.5.6/lib/ec2/ec2.rb
def create_volume(snapshot_id, size, zone)
      params = {'Size' => size.to_s, 'AvailabilityZone' => zone.to_s}
      params['SnapshotId'] = snapshot_id if snapshot_id && snapshot_id.length > 0 # snapshotId is conditional
      link = generate_request("CreateVolume",
                              params)
      request_info(link, QEc2CreateVolumeParser.new(:logger => @logger))
    rescue Exception
      on_exception
    end
# Create new EBS volume based on previously created snapshot.
# +Size+ in Gigabytes.
#
#  ec2.create_volume('snap-000000', 10, zone) #=>
#      {:snapshot_id    => "snap-e21df98b",
#       :aws_status     => "creating",
#       :aws_id         => "vol-fc9f7a95",
#       :zone           => "merlot",
#       :aws_created_at => Tue Jun 24 18:13:32 UTC 2008,
#       :aws_size       => 94}
#
Create new EBS volume based on previously created snapshot.
+Size+ in Gigabytes.


Create new EBS volume based on previously created snapshot . + Size + in Gigabytes .
def create_volume(snapshot_id, size, zone)
      params = {'Size' => size.to_s, 'AvailabilityZone' => zone.to_s}
      params['SnapshotId'] = snapshot_id if snapshot_id && snapshot_id.length > 0 
      link = generate_request("CreateVolume",
                              params)
      request_info(link, QEc2CreateVolumeParser.new(:logger => @logger))
    rescue Exception
      on_exception
    end
def create_volume ( snapshot_id , size , zone ) params = { 'Size' => size . to_s , 'AvailabilityZone' => zone . to_s } params [ 'SnapshotId' ] = snapshot_id if snapshot_id && snapshot_id . length > 0 link = generate_request ( "CreateVolume" , params ) request_info ( link , QEc2CreateVolumeParser . new ( :logger => @logger ) ) rescue Exception on_exception end
Create new EBS volume based on previously created snapshot.
Create new EBS volume based on previously created snapshot .
# snapshotId is conditional
snapshot_id
size
zone