Update Instance
opsworks_update_instance | R Documentation |
Updates a specified instance¶
Description¶
Updates a specified instance.
Required Permissions: To use this action, an 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.
Usage¶
opsworks_update_instance(InstanceId, LayerIds, InstanceType,
AutoScalingType, Hostname, Os, AmiId, SshKeyName, Architecture,
InstallUpdatesOnBoot, EbsOptimized, AgentVersion)
Arguments¶
InstanceId |
[required] The instance ID. |
LayerIds |
The instance's layer IDs. |
InstanceType |
The instance type, such as |
AutoScalingType |
For load-based or time-based instances, the type. Windows stacks can use only time-based instances. |
Hostname |
The instance host name. The following are character limits for instance host names.
|
Os |
The instance's operating system, which must be set to one of the following. You cannot update an instance that is using a custom AMI.
Not all operating systems are supported with all versions of Chef. For more information about supported operating systems, see OpsWorks Stacks Operating Systems. The default option is the current Amazon Linux version. If you set
this parameter to You can specify a different Linux operating system for the updated stack, but you cannot change from Linux to Windows or Windows to Linux. |
AmiId |
The ID of the AMI that was used to create the instance. The value of this parameter must be the same AMI ID that the instance is already using. You cannot apply a new AMI to an instance by running UpdateInstance. UpdateInstance does not work on instances that are using custom AMIs. |
SshKeyName |
The instance's Amazon EC2 key name. |
Architecture |
The instance architecture. Instance types do not necessarily support both architectures. For a list of the architectures that are supported by the different instance types, see Instance Families and Types. |
InstallUpdatesOnBoot |
Whether to install operating system and package updates when the
instance boots. The default value is We strongly recommend using the default value of |
EbsOptimized |
This property cannot be updated. |
AgentVersion |
The default OpsWorks Stacks agent version. You have the following options:
The default setting is AgentVersion cannot be set to Chef 12.2. |
Value¶
An empty list.
Request syntax¶
svc$update_instance(
InstanceId = "string",
LayerIds = list(
"string"
),
InstanceType = "string",
AutoScalingType = "load"|"timer",
Hostname = "string",
Os = "string",
AmiId = "string",
SshKeyName = "string",
Architecture = "x86_64"|"i386",
InstallUpdatesOnBoot = TRUE|FALSE,
EbsOptimized = TRUE|FALSE,
AgentVersion = "string"
)