RDS - Create Snapshot

Declaration

<AMAWSRDS ACTIVITY="create_snapshot" SNAPSHOTID="text" INSTANCEID="text" RESULTDATASET="text"/>

See Also

RDS - Authorize Security Group | RDS - Create Instance | RDS - Create Security Group | RDS - Create Session | RDS - Create Snapshot | RDS - Delete Instance | RDS - Delete Security Group | RDS - Delete Snapshot | RDS - End Session | RDS - List Instance(s) | RDS - List Security Group(s) | RDS - List Snapshot(s) | RDS - Modify Instance | RDS - Reboot Instance | RDS - Revoke Security Group

Description

Creates a recoverable DB Snapshot of all data associated with a DB Instance. Amazon RDS DB Snapshots are complete backups of your DB Instance that can be used to restore your DB Instance to a known state.

IMPORTANT: The RDS activities in AutoMate use Amazon's RDS engine to perform their work. You must enter a valid Amazon RDS service account in order for these activities to work properly.

Practical Usage

Used to generate a snapshot of your DB Instance. You can restore your DB Instance to these user-created snapshots at any point, even to reinstate a previously deleted DB Instance.  

Parameters

Snapshot Properties

Property

Type

Req'd

Default

Markup

Description

Snapshot Identifier

Text

Yes

(Empty)

SNAPSHOTID="mySnapshot"

The identifier for the DB Snapshot. Identifiers restrict returned events to a specific named source.

Instance Identifier

Text

Yes

(Empty)

INSTANCEID="mytest-1"

The source identifier for the RDS Instance from which the snapshot is created.

Create and populate dataset with RDS Snapshot information

Text

Yes

(Empty)

RESULTDATASET="mydataset"

The name of the dataset to be created and populated with the RDS Instance information. More on datasets can be found below under Datasets.

Credentials Properties

The Credentials properties allows you to set or link specific recommendations for this particular RDS activity.

Property

Type

Req'd

Default

Markup

Description

Provide Credentials

 

 

 

 

Indicates where this activity's credentials should originate from. Different properties apply depending on the option selected. This is a design-time parameter used interactively during  construction mode, thus, contains no markups. The available options are:

  • Custom (Default) - Specifies that a custom set of credentials will be entered for this EC2 activity. Select this option if performing a single RDS activity.

  • Session Based - Specifies that credentials should derive from a session created in a previous step with the use of the Create Session activity. This allows several RDS activities to be linked to a specific session.

Access Key

Text

Yes

(Empty)

ACCESSKEY=

"022QF06E7MXBSH9DHM02"

A 20-character, alphanumeric string that uniquely identifies a user who owns a EC2 account. This along with a Secret Access Key forms a secure information set that EC2 uses to confirm a valid user's identity. This property is active only if Custom is selected under the Provide Credentials property.

Secret Access Key

Text

Yes

(Empty)

SECRETKEY=

"kWcrlUX5JEDGM/LtmEENI/

aVmYvHNif5zB+d9+ct"

A 40-character string that serves the role as password to access EC2. This along with an associated Access Key forms a secure information set that EC2 uses to confirm a valid user's identity. This property is active only if Custom is selected under the Provide Credentials property.

User Agent

Text

No

AutoMate

USERAGENT="AutoMate"

The User-Agent header name. The User-Agent request-header field contains information about the user agent originating the request such as time outs, proxies, name, etc. The default User Agent name is "AutoMate". This property is active only if Custom is selected under the Provide Credentials property.

Service URL

Text

No

(Empty)

SERVICEURL=

"https://sdb.eu-west-1.amazonaws.com"

The Service URL used to make requests to the EC2 service. The Service URL provides the service endpoint. For example, to make the service call to a different region, you can pass the region-specific endpoint, such as 'https://sdb.eu-west-1.amazonaws.com'". This property is active only if Custom is selected under the Provide Credentials property.

Maximum retry on error

Number

No

(Empty)

MAXERRORRETRY="4"

Signifies how many times the Amazon EC2 engine should retry the request before returning an error. This property is active only if Custom is selected under the Provide Credentials property.

Proxy Host

Text

No

(Empty)

PROXYHOST="proxy.host.com"

The host name (server.domain.com) or IP address (xxx.xxx.xxx.xxx) of the proxy server. This property is active only if Custom is selected under the Provide Credentials property.

Proxy Port

Number

No

(Empty)

PROXYPORT="1028"

The port that should be used to connect to the proxy server. This property is active only if Custom is selected under the Provide Credentials property.

Signature Method

Text

No

(Empty)

 

SIGNMETHOD="HmacSHA256"

The Signature Method for signing the request. This property is active only if Custom is selected under the Provide Credentials property.

Signature Version

Number

No

(Empty)

 

SIGNVERSION="2"

The Signature Version for signing the request. The version refers to the particular algorithm for signing the request. This property is active only if Custom is selected under the Provide Credentials property.

Session Name

Text

Yes

EC2Session

SESSION="EC2Session1"

The session name to be created. This allows several EC2 activities to be linked to this  session, eliminating redundancy. Numerous sessions can be used within a single task. The default value is EC2Session. This property is active only if Session Based is selected under the Provide Credentials property.

NOTE: Use the End Session activity to end an EC2 session.

Description Properties

The Description tab allows you to customize the text description of any step when it appears in the Steps Pane.

More on setting custom step description

Error Causes Properties

The Error Causes tab is part of AutoMate's Error Handling functionality which allows you to select / omit specific errors that will cause a particular step to fail.

More about error causes properties

On Error Properties

The On Error tab is part of AutoMate's Error Handling functionality which allows you to determine what the task should do if a particular step encounters an error.

More about on error properties

Notes

Datasets

A dataset is a multiple column, multiple row container object. This activity creates and populates a dataset containing a specific set of fields. The table below describes these fields (assuming the dataset name assigned was theDataset).

Name

Type

Return Value

theDataset.AllocatedStorage

Number

Returns the size of the RDS Instance in GB that's allocated for storage.

theDataset.AvailabilityZone

Text

Returns the availability zone where the RDS Instance was launched. (Example: us-east-1b)

theDataset.DBInstanceIdentifier

Text

Returns the source identifier for the RDS Instance from which the snapshot was created.

theDataset.DBSnapshotIdentifier

Text

Returns the identifier for the DB Snapshot. (Example: my-snapshot-id)

theDataset.Engine

Text

Returns the version of the MySQL engine of the RDS Instance. (Example: MySQL 5.1)

theDataset.InstanceCreateTime

Date

Returns the date and time when the DB Instance was created (Example: 2009-09-07T23:45:00Z)

theDataset.MasterUsername

Text

Returns the username used to log onto MySQL.

theDataset.Port

Number

Returns the original port of the database from which the DB Snapshot was taken. (Example: 1234)

theDataset.SnapshotCreateTime

Date

Returns the date and time when the Snapshot was created. (Example: 2009-09-07T23:45:00Z)

theDataset.Status

Text Options

Returns the current status of the Instance (Example: backing-up). Valid values are:

available | backing-up | creating | deleted | deleting | failed | modifying | rebooting | resetting-master-credentials

Variables and Expressions

All text fields allow the use of expressions, which can be entered by surrounding the expression in percentage signs (example: %MYVARIABLE%, %Left('Text',2)%). To help construct these expressions, you can open Expression Builder from these fields by pressing F2.

More on variables
More on expressions

More on the expression builder

Example

NOTE: The code below can be copied and pasted directly into the Steps pane of the Task Builder.

 

Description: Create snapshot "mysnapshot" from RDS database instance "instance1". Store RDS database snapshot information into dataset "mydataset". Use default RDS session.

 

<AMAWSRDS ACTIVITY="create_snapshot" SNAPSHOTID="mysnapshot" INSTANCEID="instance1" RESULTDATASET="mydataset" />

 

↑ Top of Page