v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1474216311.3 KB

Assign a registered instance to a layer.

  • You can assign registered on-premises instances to any layer type.

  • You can assign registered Amazon EC2 instances only to custom layers.

  • You cannot use this action with instances that were created with AWS OpsWorks Stacks.

Required Permissions: To use this action, an AWS Identity and Access Management (IAM) user must have a Manage permissions level for the stack or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions.

post/#X-Amz-Target=OpsWorks_20130218.AssignInstance

Headers

X-Amz-Target'OpsWorks_20130218.AssignInstance' required

Request body

InstanceIdstring required

The instance ID.

LayerIdsString[] required

The layer ID, which must correspond to a custom layer. You cannot assign a registered instance to a built-in layer.

Response

Success

All 74 operations