Enable Amazon EBS optimization for an Amazon EC2 instance - Amazon Elastic Compute Cloud
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Enable Amazon EBS optimization for an Amazon EC2 instance

You can manually enable Amazon EBS optimization only for instances types that optionally support Amazon EBS optimization, but are not Amazon EBS-optimized by default. For these instance types you can enable Amazon EBS optimization during or after launch for an additional hourly fee.

Console
To enable Amazon EBS optimization during launch

In the Launch instances wizard, select the required instance type. Expand the Advanced details section, then for EBS-optimized instance, select Enable.

If the selected instance type does not support Amazon EBS optimization, the drop-down is disabled. If the instance type is Amazon EBS-optimized by default, Enable is already selected.

To enable Amazon EBS optimization after launch
  1. Open the Amazon EC2 console at https://console.amazonaws.cn/ec2/.

  2. In the navigation pane, choose Instances, and select the instance.

  3. Stop the instance. Choose Actions, Instance state, Stop instance.

    Warning

    When you stop an instance, the data on any instance store volumes is erased. To keep data from instance store volumes, be sure to back it up to persistent storage.

  4. With the instance still selected, choose Actions, Instance settings, Change instance type.

  5. Select EBS-optimized and then choose Apply.

    If the instance type is Amazon EBS-optimized by default, or if it does not support Amazon EBS optimization, the checkbox is disabled.

  6. Restart the instance. Choose Instance state, Start instance.

Command line
To enable Amazon EBS optimization during launch

You can use one of the following commands with the corresponding option.

To enable Amazon EBS optimization after launch
  1. If the instance is running, stop it using one of the following commands.

    Warning

    When you stop an instance, the data on any instance store volumes is erased. To keep data from instance store volumes, be sure to back it up to persistent storage.

  2. Enable EBS optimization using one of the following commands with the corresponding option: