Skip to main content

Amazon EC2: Attach Volume

Description

This step attaches an EBS volume to a running or stopped EC2 instance. You provide the volume ID, instance ID, and the device name (such as /dev/sdh or xvdh). The volume and instance must be in the same availability zone. The step returns the attachment status. Use this step in workflows that add storage to existing instances, set up data volumes during provisioning, or restore volumes from backups.

Reference

Available EC2 Device Names

Configurations

Field nameDescription
Step NameSpecify a unique name for the step.
CONNECTION tab:Connection fields
RegionSpecify the region where the instance is hosted or choose a region from the Region Explorer window.
Button: GetClick Get button to open the Region Explorer window. Choose a Region.
Access KeySpecify an Access Key to authenticate EC2 instance on Amazon AWS cloud. This field is mandatory.
Secret KeySpecify a Secret Key to authenticate Amazon AWS cloud. This field is mandatory.
Button: Test ConnectionClick Test Connection button to verify whether the connection is available or not. Region, Access key, and Secret Key are mandatory to authenticate Amazon AWS cloud.
For the purpose of verification, fields coming from previous steps are not allowed since field values can only be accessed when workflow is in running state. Static (hardcoded) values and environment variables are allowed. It will not work for previous step fields.
INPUT tab:Input fields
Volume IDSelect the ID of the EBS volume. The volume and instance must be within the same availability zone.
Data type is String. This field is mandatory.
Button: GetClick to get the list of volume IDs.
Instance IDSelect the ID of the instance to which you want to attach the volume ID.
Data type is String. This field is mandatory.
Button: GetClick to get the list of instance IDs.
DeviceSelect the device name. For example, /dev/sdh or xvdh.
Data type is String. This field is mandatory.
OUTPUT tab:Output fields
StatusSpecify the status of attach operation, which will be given as output through this field.
The default value is ‘Status’.