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

Create EBS Volume using amazon EC2 Connector

 

Configure the below parameters to create volume

Create EBS Volume using amazon EC2 Connector

 

  • 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

Create EBS Volume using amazon EC2 Connector

 

10 GiB EBS volume get created

 

Sample application:create volume sample application

More detail on Amazon EBS volume

MuleSoft Amazon EC2 Connector

  
Thank you for taking out time to read the above post. Hope you found it useful. In case of any questions, feel free to comment below. Also, if you are keen on knowing about a specific topic, happy to explore your recommendations as well.
 
For any latest updates or posts on our website, you can follow us on LinkedIn. Look forward to connecting with you there.


Share this:
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments