Search

Stop Instance

Last Updated: Mar 15, 2021

Articles

Use this function to stop an Instance in AWS with the given details.

Syntax

Stop Instance (access_key, secret_key, location, instance_id)

Parameters

Input Parameter Name Description
access_key AWS access_key_ID of the user
secret_key AWS Secret_access_key of the user
location Location where the machine is hosted
instance_id ID of the instance

To know more about access_key and secret_key, click here.

Returns

Return Value Description
Output
  • On Success returns 1 | Instance Stopped Time
  • On Failure returns 0 | Error Message

Sample

Stop Instance (XYZ, ABC, us-east-2, i-111111)

  • Uses the access key XYZ and the secret key ABC to login to AWS, stops the instance i-111111 in the location us-east-2.
    Returns the Instance Stopped Time on stopping the instance.

To view all the AWS functions, click here.

Did you find what you were looking for?