Menu
AWS Cloud9
User Guide

Moving or Resizing an Environment in AWS Cloud9

You can move an AWS Cloud9 development environment from one Amazon EC2 instance to another. (We also call this resizing an environment.) For example, you might want to do one of the following.

  • Transfer an environment from an Amazon EC2 instance that is broken, or behaving in unexpected ways, to a healthy instance.

  • Transfer an environment from an older instance to an instance that has the latest system updates.

  • Increase an instance's compute resources, because the environment is over-utilized on the current instance.

  • Decrease an instance's compute resources, because the environment is under-utilized on the current instance.

Note

This topic only covers resizing an environment from one Amazon EC2 instance to another. To resize an environment from one of your own servers to another, refer to your server's documentation.

You cannot resize an environment to an Amazon EC2 instance of the same type. When you resize, you must choose a different Amazon EC2 instance type for the new instance.

Before you start the resize process, note the following.

  • You must stop the Amazon EC2 instance that is associated with an environment before you can change the instance type. While the instance is stopped, neither you nor any members will be able to use the environment that are associated with the stopped instance.

  • We move the instance to new hardware; however, the instance's ID does not change.

  • If the instance is running in an Amazon VPC and has a public IPv4 address, we release the address and give it a new public IPv4 address. The instance retains its private IPv4 addresses, any Elastic IP addresses, and any IPv6 addresses.

  • Ensure that you plan for downtime while your instance is stopped. The process might take several minutes.

To resize an environment, do the following.

  1. (Optional) If the new instance type requires drivers that are not installed on the existing instance, you must connect to your instance and install the drivers first. For more information, see Compatibility for Resizing Instances in the Amazon EC2 User Guide for Linux Instances.

  2. Close all web browser tabs that are currently displaying the environment.

    Important

    If you do not close all of the web browser tabs that are currently displaying the environment, AWS Cloud9 might interfere with allowing you to fully complete the procedure. Specifically, AWS Cloud9 might try at the wrong time during this procedure to restart the Amazon EC2 instance that is associated with the environment. The instance must stay stopped until the very last step in this procedure.

  3. Sign in to the AWS Management Console, if you are not already signed in, at https://console.aws.amazon.com.

    We recommend you sign in using credentials for an IAM administrator user in your AWS account. If you cannot do this, check with your AWS account administrator.

  4. Open the Amazon EC2 console. To do this, in the Services list, choose EC2.

  5. In the AWS navigation bar, choose the AWS Region that contains the environment that you want to resize (for example, US East (Ohio)).

  6. In the service navigation pane, expand Instances if it is not already expanded, and then choose Instances.

  7. In the list of instances, choose the instance that is associated with the environment that you want to resize. For an EC2 environment, the instance name starts with aws-cloud9- followed by the environment name. For example, if the environment is named my-demo-environment, the instance name will start with aws-cloud9-my-demo-environment.

  8. If the Instance State is not stopped, choose Actions, Instance State, Stop. When prompted, choose Yes, Stop. It can take a few minutes for the instance to stop.

  9. After the Instance State is stopped, with the instance still selected, choose Actions, Instance Settings, Change Instance Type.

  10. In the Change Instance Type dialog box, for Instance Type, choose the new instance type that you want the environment to use.

    Note

    If the instance type that you want does not appear in the list, then it is not compatible with the instance's configuration (for example, because of its virtualization type).

  11. (Optional) If the instance type that you chose supports EBS–optimization, select EBS-optimized to enable EBS–optimization, or clear EBS-optimized to disable EBS–optimization.

    Note

    If the instance type that you chose is EBS–optimized by default, EBS-optimized is selected and you can't clear it.

  12. Choose Apply to accept the new settings.

    Note

    If you did not choose a different instance type for Instance Type earlier in this procedure, nothing happens after you choose Apply.

  13. Reopen the environment. For more information, see Opening an Environment.

For more information about the preceding procedure, see Changing the Instance Type in the Amazon EC2 User Guide for Linux Instances.