Stops or terminates an Amazon EC2 instance.
Instances that use Amazon EBS volumes as their root devices can be quickly stopped and started. When an instance is stopped, the compute resources are released and you are not billed for hourly instance usage. However, your root partition Amazon EBS volume remains, continues to persist your data, and you are charged for Amazon EBS volume usage. You can restart your instance at any time.
Before stopping an instance, make sure it is in a state from which it can be restarted. Stopping an instance does not preserve data stored in RAM. Stopping an instance that uses an instance store as its root device returns an error.
The Terminate 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: Terminating instances using this cmdlet is considered deprecated. Please use the Remove-EC2Instance cmdlet for instance termination as it supports confirmation prompts when a shell's $ConfirmPreference setting is at its default value (High). The Stop-EC2Instance cmdlet is marked as medium impact (for backwards compatibility) and will not therefore trigger a confirmation prompt for both stop and termination operations unless $ConfirmPreference is set to Medium or lower. This could lead to accidental termination of instances. Use of the -Terminate switch is maintained for backwards compatibility only.