> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flexagon.com/llms.txt
> Use this file to discover all available pages before exploring further.

# terminateInstance (EC2)

> Note: This operation is currently non functional. Will be available in upcoming releases . Stops and terminates an EC2 instance running on a specified

**Note: This operation is currently non-functional. Will be available in upcoming releases**.

Stops and terminates an EC2 instance running on a specified AWS Endpoint.  

# Target Properties

<table><colgroup><col /><col /><col /><col /></colgroup><tbody><tr><th>**Property Name**</th><th>**Property Code**</th><th>**Required**</th><th>**Description**</th></tr><tr><td>AWS Access Key</td><td>`FDAWS_ACCESS_KEY`</td><td>Yes</td><td>The access key found on the "Security Credentials" page of the AWS management console.</td></tr><tr><td>AWS Secret Key</td><td>`FDAWS_SECRET_KEY`</td><td>Yes</td><td>The secret key found on the "Security Credentials" page of the AWS management console.</td></tr><tr><td>AWS Region</td><td>`FDAWS_ENDPOINT`</td><td>Yes</td><td>The AWS region to operate on. To find the endpoint code for your region, see [Amazon's Documentation](http://docs.aws.amazon.com/general/latest/gr/rande.html#ec2_region).</td></tr></tbody></table>

# Inputs

<table><colgroup><col /><col /><col /><col /></colgroup><tbody><tr><th>**Input Name**</th><th>**Input Code**</th><th>**Required**</th><th>**Description**</th></tr><tr><td>Instance ID</td><td>`FDAWS_EC2_INP_INSTANCE_ID`</td><td>Yes</td><td>The ID of the instance to terminate.</td></tr></tbody></table>

# Artifacts

This operation does not produce or consume artifacts.

# Endpoint Selection

This operation will select all available endpoints associated to the target.

# Endpoint Execution

This operation will execute on any one of the selected endpoints and will be random in the determination of which one.
