documentation.HELP! Amazon Elastic Compute Cloud: 2009-10-31 Documentation

ec2-terminate-instances

Amazon Elastic Compute Cloud: 2009-10-31

previous page next page

ec2-terminate-instances

Description

Shuts down one or more instances. This operation is idempotent; if you terminate an instance more than once, each call will succeed.

Terminated instances will remain visible after termination (approximately one hour).

[Note] Note

By default, Amazon EC2 deletes all Amazon EBS volumes that were attached when the instance launched. Amazon EBS volumes attached after instance launch continue running.

Syntax

ec2-terminate-instances instance_id [instance_id ...]

Options

Name Description Required

instance_id

The instance ID.

Type: String

Default: None

Example: i-43a4412a

Yes

Output

The command returns a table that contains the following information:

  • INSTANCE identifier

  • The instance ID of the instance being terminated

  • The state of the instance prior to being terminated

  • The new state of the instance

Amazon EC2 displays errors on stderr.

Examples

Example Request

This example terminates the i-3ea74257 instance.

PROMPT> ec2-terminate-instances i-3ea74257
INSTANCE i-3ea74257 running shutting-down

Related Operations

ec2-describe-instances
  • ec2-run-instances

  • previous page start next page

    Menu

    • Homepage

    Table of contents

    • Welcome
    • What's New
    • Getting the Command Line Tools
    • AMI Tools Reference
      • Common Options for AMI Tools
      • ec2-bundle-image
      • ec2-bundle-vol
      • ec2-delete-bundle
      • ec2-download-bundle
      • ec2-migrate-bundle
      • ec2-migrate-manifest
      • ec2-unbundle
      • ec2-upload-bundle
    • API Command Line Tools Reference
      • Common Options for API Tools
      • List of Command Line Operations by Function
      • ec2-add-group
      • ec2-add-keypair
      • ec2-allocate-address
      • ec2-associate-address
      • ec2-attach-volume
      • ec2-authorize
      • ec2-bundle-instance
      • ec2-cancel-bundle-task
      • ec2-confirm-product-instance
      • ec2-create-image
      • ec2-create-snapshot
      • ec2-create-volume
      • ec2-delete-group
      • ec2-delete-keypair
      • ec2-delete-snapshot
      • ec2-delete-volume
      • ec2-deregister
      • ec2-describe-addresses
      • ec2-describe-availability-zones
      • ec2-describe-bundle-tasks
      • ec2-describe-group
      • ec2-describe-image-attribute
      • ec2-describe-images
      • ec2-describe-instance-attribute
      • ec2-describe-instances
      • ec2-describe-keypairs
      • ec2-describe-regions
      • ec2-describe-reserved-instances
      • ec2-describe-reserved-instances-offerings
      • ec2-describe-snapshot-attribute
      • ec2-describe-snapshots
      • ec2-describe-volumes
      • ec2-detach-volume
      • ec2-disassociate-address
      • ec2-fingerprint-key
      • ec2-get-console-output
      • ec2-get-password
      • ec2-get-password-data
      • ec2-migrate-bundle
      • ec2-migrate-image
      • ec2-modify-image-attribute
      • ec2-modify-instance-attribute
      • ec2-modify-snapshot-attribute
      • ec2-monitor-instances
      • ec2-purchase-reserved-instance-offering
      • ec2-reboot-instances
      • ec2-register
      • ec2-release-address
      • ec2-reset-image-attribute
      • ec2-reset-instance-attribute
      • ec2-reset-snapshot-attribute
      • ec2-revoke
      • ec2-run-instances
      • ec2-start-instances
      • ec2-stop-instances
      • ec2-terminate-instances
      • ec2-unmonitor-instances
    • Glossary
    • Document Conventions
    • Index

    Get in touch

    Submit feedback about this site to:

    • [email protected]

    © documentation.help. Design: rehmann.co.