Name

DB.DBA.AMAZON_RUN_INSTANCE — Runs new AMI instance of image.

Synopsis

DB.DBA.AMAZON_RUN_INSTANCE ( in aws_access_key varchar ,
  in image_id varchar ,
  in secret_key varchar ,
  in key_name varchar ,
  in MinCount integer (default 1) ,
  in MaxCount integer (default 1) ,
  in http_proxy varchar (default null) );
 

Description

Runs new AMI instance of image.

Parameters

aws_access_key

Amazon Access Key ID.

image_id

The Image ID of the AMI.

secret_key

AWS Security Token.

key_name

Name of public key to use (can be used for Linux images). Can be empty or null.

MinCount

The minimum number of instances to launch. If the value is more than Amazon EC2 can launch, no instances are launched at all. Default is 1.

MaxCount

The maximum number of instances to launch. If the value is more than Amazon EC2 can launch, the largest possible number above MinCount will be launched instead. Default is 1.

http_proxy

Proxy server, can be null or empty.

Examples

Example 24.230. Simple Use

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

  access_key := 'AKIAJI7ZL427TI5EDF5A'; -- amazon manager site access key
  sec_token  := 'CGI/UMaXf2LRUctaj/HGJ57UNy/t7fNCshh8wpJg'; -- amazon manager site secret token
  key_name   := 'my_key';
  p_name     := 'my_instance_of_linux';

  DB.DBA.AMAZON_RUN_INSTANCE (access_key, p_name, sec_token, key_name);

}
;