Amazon RDS - End session

Declaration

<AMAWSRDS ACTIVITY="end_session" SESSION="text" />

Related Topics   

Description

Ends an RDS session.

IMPORTANT: Automate Desktop's RDS activities are performed using Amazon's Relational Database Service engine, therefore, administering Amazon RDS through Automate Desktop requires a valid Access Key ID and Secret Access Key.

Practical usage

Used to end a session previously created and started by a Amazon RDS - Create Session step.

Parameters

Credentials

Property Type Required Default Markup Description
Session Name Text Yes (Empty) SESSION="RDSSession32" Specifies the name of the session to end.

Description

Error Causes

On Error

Example

NOTE:
  • Copy and paste the sample AML code below directly into the Task Builder Steps Panel.
  • To successfully run the sample code, update parameters containing user credentials, files, file paths, or other information specific to the task to match your environment.

Description

This sample task demonstrates some of Automate Desktop's RDS activities. It creates a database instance and performs some modifications to the new instance, creates a snapshot of the newly modified instance, reboots, and then ends the session.

Copy
<AMAWSRDS ACTIVITY="create_session" ACCESSKEY="AKIAJU2LHLMG6BA6BZTA" SECRETKEY="AM3m5RnKS1eh50=aME" USERAGENT="Automate" SESSION="MySession" />
<AMAWSRDS INSTANCEID="myRDSDatabase" INSTANCETYPE="db.m1.small" ZONE="us-east-1a" MASTERUSER="myName" MASTERPWD="AM16wP88TJPA0FX78Oon4bvjg==aME" PORT="3306" STORAGE="5" PROVIDER="session_based" SESSION="MySession" />
<AMAWSRDS ACTIVITY="modify_instance" INSTANCEID="myRDSDatabase" INSTANCETYPE="db.m1.large" STORAGE="10" APPLYFAST="yes" PROVIDER="session_based" SESSION="MySession" />
<AMAWSRDS ACTIVITY="create_snapshot" SNAPSHOTID="rdsSnap" INSTANCEID="myRDSDatabase" RESULTDATASET="theSnap" PROVIDER="session_based" SESSION="MySession" />
<AMAWSRDS ACTIVITY="reboot_instance" INSTANCEID="myRDSDatabase" PROVIDER="session_based" SESSION="MySession" />
<AMAWSRDS ACTIVITY="end_session" SESSION="MySession" />