Editing the Instance Configuration - AWS OpsWorks

Editing the Instance Configuration

Important

The AWS OpsWorks Stacks service reached end of life on May 26, 2024 and has been disabled for both new and existing customers. We strongly recommend customers migrate their workloads to other solutions as soon as possible. If you have questions about migration, reach out to the AWS Support Team on AWS re:Post or through AWS Premium Support.

You can edit instance configurations, including registered Amazon Elastic Compute Cloud (Amazon EC2) instances, with the following limitations:

  • The instance must be in the stopped state.

    Although you can't modify an online instance's properties, you can change some aspects of its configuration by editing the instance's layers. For more information, see Editing an OpsWorks Layer's Configuration.

  • Some settings, such as Availability Zone and Scaling Type, are determined when you create the instance and cannot be modified later.

  • Some settings can be modified for instance store-backed instances only, not for Amazon Elastic Block Store-backed instances.

    For example, you can change an instance store-backed instance's operating system. Amazon EBS-backed instances must use the operating system that you specified when you created the instance. For more information on instance storage, see Storage.

  • By default, instances inherit the stack's agent version setting.

    You can use OpsWorks Agent Version to override the stack's agent version setting and specify a particular agent version for an instance. If you specify an instance's agent version, AWS OpsWorks Stacks does not automatically update the agent when a new version is available, even if the stack's agent version setting is Auto-update. You must update the instance's agent version manually by editing the instance configuration. AWS OpsWorks Stacks then installs the specified agent version on the instance.

Note

You cannot edit the configuration of registered on-premises instances.

To edit an instance's configuration
  1. Stop the instance, if it is not already stopped.

  2. On the Instances page, click an instance name to display the Details page.

  3. Click Edit to display the edit page.

  4. Edit the instance's configuration, as appropriate.

For a description of the Host name, Size, SSH key and Operating system settings, see Adding an Instance to a Layer. The Layers setting lets you add or remove layers. The instance's current layer's appear following the list of layers.

  • To add another layer, select it from the list.

  • To remove the instance from one of its layers, click the x by the appropriate layer.

    An instance must be a member of at least one layer, so you cannot remove the last layer.

When you restart the instance, AWS OpsWorks Stacks starts a new Amazon EC2 instance with the updated configuration.