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.
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.
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.
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".
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.