All Collections
Actions
Amazon Web Services
Terminate EC2 Instance Actions
Terminate EC2 Instance Actions
Matt Houser avatar
Written by Matt Houser
Updated over a week ago

Description

The Terminate EC2 Instance action can be used to terminate an EC2 instance at a specific time of day.

For example, an instance can be terminated automatically at 8pm.

Important Note

Terminating an instance will stop the instance and remove it completely. It cannot be restarted again. Only terminate an instance when you do not need it anymore, ever.

Settings

Please see Common Action Settings for a description of settings common to all action types.

Instance Identification Method

Indicate the method in which the instance is to be identified. Valid options are:

  • Instance ID - Identify the instance by it's unique instance ID value.

  • Instance Name - Identify the instance by it's "Name" tag.

Instance ID

Indicate the instance id of your EC2 instance. This value usually looks like "i-84a3dc7b". This instance must reside in the region specified. Required only if Instance Identification Method is set to "Instance ID".

Instance Name

Indicate the value of the "Name" tag of the EC2 instance. This instance must reside in the region specified. Required only if Instance Identification Method is set to "Instance Name".

Amazon Commands Used

The following Amazon AWS commands are used. The access key should have permission to execute all of them.

  • ec2:DescribeInstances

  • ec2:TerminateInstances

Did this answer your question?