# Attach Volume To Instance

> `UiPath.AmazonWebServices.Activities.Ec2.Volume.AWSAttachVolumeToInstance`

`UiPath.AmazonWebServices.Activities.Ec2.Volume.AWSAttachVolumeToInstance`

## Description

Attaches a given volume to a given instance.

## Project compatibility

Windows | Cross-platform

## Configuration

* **Volume** - The volume which needs to be attached. This field accepts `AWSEBSVolume` input.
* **Instance** - The instance to which a volume needs to be attached. This field accepts `AWSEc2Instance` input.
* **Device** - The device name that you assign is used by Amazon EC2. This field accepts `String` input.

:::note
By default, when you attach an EBS volume to an instance, its `DeleteOnTermination` attribute is set to `false`.
:::
