Appendix B: Available Actions - Operations Conductor

Appendix B: Available Actions

Amazon EC2 Create Snapshot

The create snapshot action enables the solution to automatically create snapshots of Amazon Elastic Block Store (Amazon EBS) volumes. The minimum interval between task executions is 60 minutes.

Review the action-specific parameters for the template and modify them as necessary.

Parameter Default Description
Copy Volume Tags false Enter a tag filter to copy tags from the volume to the snapshot. For example, enter * to copy all tags from the volume to the snapshot.

Create Snapshot Action

The resource selector AWS Lambda function searches the Amazon EBS volumes for tagged resources with the Target Tag in each region and account. When you create an event task using the create snapshot action, you must set the event pattern, which will send Amazon EBS volumes as resources.

The following example JSON shows the action when an Amazon EBS volume is created.

{ "source": [ "aws.ec2" ], "detail-type": [ "EBS Volume Notification" ], "detail": { "event": [ "createVolume" ] } }

Amazon EC2 Delete Snapshot

The delete snapshot action enables the solution to automatically delete snapshots of Amazon Elastic Block Store (Amazon EBS) volumes older than a customer-defined number of days. Or, customers can configure this action to keep only the latest snapshots. The minimum interval between task executions is 15 minutes.

Review the action-specific parameters for the template and modify them as necessary. This action template uses the following default values.

Parameter Required Description
Retention Count No

The number of snapshots to retain for the EBS volume.

Note

If the total number of snapshots to retain for this volume exceeds this number, the older snapshots will be deleted.

Retention Days No

The retention period in days.

Note

Snapshots older than the inputted number of days from when the task is executed will be deleted.

Delete Snapshot Action

The resource selector AWS Lambda function, searches the Amazon EBS volumes for tagged resources with the Target Tag in each region and account. When you create an event task using the create snapshot action, you must set the event pattern, which will send Amazon EBS volumes as resources.

The following example JSON shows the action when an Amazon EBS volume is modified.

{ "source": [ "aws.ec2" ], "detail-type": [ "EBS Volume Notification" ], "detail": { "event": [ "modifyVolume" ] } }

Amazon EC2 Copy Snapshot

The copy snapshot action enables the solution to automatically copy snapshots of Amazon Elastic Block Store (Amazon EBS) volumes between accounts and regions. The minimum interval between task executions is 60 minutes. The maximum number of snapshots you can copy per account to a destination region concurrently is 5.

All source snapshots must be tagged with the Target Tag that you defined in the Document Tag Key template parameter. During the task creation, review the following parameters and modify them as necessary.

Parameter Required Description
Destination Account Yes The account where the snapshot will be copied to
Destination Region Yes The region where the snapshot will be copied

Copy Snapshot Action

The resource selector AWS Lambda function searches Amazon EBS volumes for tagged resources with the Target Tag in each region and account. When you create an event task using the create snapshot action, you must set the event pattern, which will send Amazon EBS volumes as resources.

The following example JSON shows the action when an Amazon EBS snapshot is created.

{ "source": [ "aws.ec2" ], "detail-type": [ "EBS Snapshot Notification" ], "detail": { "event": [ "createSnapshot" ] } }

Amazon EC2 Resize Instance

This action stops your existing instance, resizes the instance to the next defined size up or the next defined size down, then starts the instance again.

During the resizing, Amazon Elastic Block Store (Amazon EBS) volumes on the instance will remain attached and the data will persist. However, any data on the ephemeral storage of your instance will be lost. To keep your data, it must be stored on attached Amazon EBS volumes.

Review the action-specific parameters for the template and modify them as necessary. This action template uses the following default values.

Parameter Required Description
Target EC2 Instance Type List Yes

A comma-delimited list of instance types within the same family. The instance types should be in increasing order of size. For example, smallest instance type should be the first item in the list.

CPU Utilization Low Threshold Yes

An integer between 1 and 100. If the average CPU utilization goes below this threshold, the instance will be scaled down.

CPU Utilization High Threshold Yes An integer between 1 and 100. If the average CPU utilization goes above this threshold, the instance will be scaled up.

Resize Instance Action

The resource selector AWS Lambda function searches Amazon EC2 instances in each region and account. However, there is no recommendable event pattern for this action.

Amazon DynamoDB Set Capacity

The Amazon DynamoDB set capacity action enables the solution to automatically provision throughput capacity for reads and writes to DynamoDB tables. The minimum interval between task executions is 15 minutes.

Review the action-specific parameters for the template and modify them as necessary. This action template uses the following default values.

Parameter Required Description
Table Read Capcity Units No The read capacity for the table
Table Write Capacity Units No The write capacity for the table
Global Secondary Index Name No Name for the Global Secondary Index to update. If an index name is provided, Global Secondary Index Read Capacity Units and Global Secondary Index Write Capacity Units must be supplied.
Global Secondary Index Read Capacity Units No The read capacity for the global secondary index
Global Secondary Index Write Capacity Units No The write capacity for the global secondary index

Amazon DynamoDB Set Capacity Action

The resource selector AWS Lambda function searches the Amazon DynamoDB tables for tagged resources with the Target Tag in each region and account. However, there is no recommendable event pattern for this action.