Top

Name

DB.DBA.AMAZON_CREATE_SNAPSHOT — Creates a snapshot of an Amazon EBS volume and stores it in Amazon S3.

Synopsis

DB.DBA.AMAZON_CREATE_SNAPSHOT ( in aws_access_key varchar ,
  in volumeId varchar ,
  in secret_key varchar ,
  in description varchar (default 'new+snapshot') ,
  in http_proxy varchar (default null) );
 

Description

Creates a snapshot of an Amazon EBS volume and stores it in Amazon S3. You can use snapshots for backups, to make copies of instance store volumes, and to save data before shutting down an instance.

Parameters

aws_access_key

Amazon Access Key ID.

volumeId

The ID of the Amazon EBS volume.

secret_key

AWS Security Token.

description

A description for the snapshot.

http_proxy

Proxy server, can be null or empty.

Examples

Example 24.236. Simple Use

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

  access_key := 'AKIAJI7ZL427TI5EDF5A'; -- amazon manager site access key
  sec_token  := 'CGI/UMaXf2LRUctaj/HGJ57UNy/t7fNCshh8wpJg'; -- amazon manager site secret token
  vol_id     := 'vol-1a2b3c4d';

  DB.DBA.AMAZON_CREATE_SNAPSHOT (access_key, vol_id, sec_token);

}
;