Skip to main content

Stop Instance

AutomatR.AWS.Activities.StopInstance

The "Stop Instance" activity in AutomatR is part of the AWS activities package, facilitating the stopping of an Amazon Elastic Compute Cloud (EC2) instance. This activity is particularly useful for managing EC2 instances within AWS, allowing for automation of instance control.

Properties

NameDescription
Input
Access Key IDProvides the encrypted access key ID for your AWS account, enabling connection to the Amazon Recognition service. String variables containing the access key ID.
Instance IDSpecifies the valid instance ID of the EC2 instance that you want to stop. String variables containing the instance ID.
RegionSpecifies the valid AWS region where your EC2 instance is created. RegionEndpoint variables containing the AWS region.
Secret Access KeyProvides the encrypted secret access key ID for your AWS account, enabling connection to the Amazon Recognition service. String variables containing the secret access key.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Stop Instance" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Example: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1.

How to use:

  1. Drag and drop the "Stop Instance" activity onto the workflow.
  2. Configure the properties by providing the access key ID, secret access key, region, and instance ID.
  3. Optionally, configure the delay and customize the display name.
  4. Execute the workflow to stop the specified EC2 instance within AWS.

Example: Consider an example where the "Stop Instance" activity is used to stop an EC2 instance with the ID "i-0123456789abcdef0":

Stop Instance:
Display Name: "Stop My EC2 Instance"
Access Key ID: "{YourAccessKey}"
Secret Access Key: "{YourSecretKey}"
Region: "us-east-1"
Instance ID: "i-0123456789abcdef0"

In this example, the activity stops the EC2 instance with the specified ID in the "us-east-1" region using the provided access and secret keys. Adjust the input parameters according to your AWS environment.