Create EBS Volume
Anypoint Connector for Amazon EC2 (Amazon EC2 Connector) provides connectivity to the Amazon Elastic Compute Cloud (Amazon EC2) API, enabling you to interface with Amazon EC2 to launch as many or as few virtual servers as you need, configure security and networking, and manage storage. Create EBS Volume using Amazon EC2 Connector that can be attached to an instance in the same Availability Zone.
Perquisites:
- AWS Identity and Access Management (IAM) user account credentials
- Access to EC2
Create project in Anypoint studio and configure the listener
Drag and drop Create Volume operation configure the AWS access and secret key
Configure the below parameters to create volume
- Availability zone: Availability zone where need to create the volume, this can be a dataweave expresion or string constant
- Size: Size of the volume in GiB
- Volume Type: you can select different volume type by default is standard
Send the volumeId as response Created in EC2
%dw 2.0 output application/json --- payload.volumeId
Deploy and test the project from SOAPUI
10 GiB EBS volume get created
Sample application:create volume sample application
More detail on Amazon EBS volume