Delete Instance
opsworks_delete_instance | R Documentation |
Deletes a specified instance, which terminates the associated Amazon EC2 instance¶
Description¶
Deletes a specified instance, which terminates the associated Amazon EC2 instance. You must stop an instance before you can delete it.
For more information, see Deleting Instances.
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_delete_instance(InstanceId, DeleteElasticIp, DeleteVolumes)
Arguments¶
InstanceId |
[required] The instance ID. |
DeleteElasticIp |
Whether to delete the instance Elastic IP address. |
DeleteVolumes |
Whether to delete the instance's Amazon EBS volumes. |
Value¶
An empty list.
Request syntax¶
svc$delete_instance(
InstanceId = "string",
DeleteElasticIp = TRUE|FALSE,
DeleteVolumes = TRUE|FALSE
)