Top

Name

DB.DBA.AMAZON_CREATE_VOLUME — Creates an Amazon EBS volume that can be attached to any Amazon EC2 instance in the same Availability Zone.

Synopsis

DB.DBA.AMAZON_CREATE_VOLUME ( in aws_access_key varchar ,
  in availabilityZone varchar ,
  in secret_key varchar ,
  in snapshotId varchar (default '') ,
  in volume_size integer (default 1) ,
  in http_proxy varchar (default null) );
 

Description

Creates an Amazon EBS volume that can be attached to any Amazon EC2 instance in the same Availability Zone. Any AWS Marketplace product codes from the snapshot are propagated to the volume.

Parameters

aws_access_key

Amazon Access Key ID.

availabilityZone

The Availability Zone for the new volume.

secret_key

AWS Security Token.

snapshotId

The snapshot from which to create the new volume.

volume_size

The size of the volume, in GiBs.

http_proxy

Proxy server, can be null or empty.

Examples

Example 24.233. Simple Use

create procedure simple_test()
{
  declare access_key, sec_token, zone varchar;

  access_key := 'AKIAJI7ZL427TI5EDF5A'; -- amazon manager site access key
  sec_token  := 'CGI/UMaXf2LRUctaj/HGJ57UNy/t7fNCshh8wpJg'; -- amazon manager site secret token
  zone       := 'us-east-1a';

  DB.DBA.AMAZON_CREATE_VOLUME (access_key, zone, sec_token);

}
;