# Launching an EC2 Instance with multiple EBS volumes using Chef & Knife EC2 plugin

**URL:** <https://discourse.chef.io/t/launching-an-ec2-instance-with-multiple-ebs-volumes-using-chef-knife-ec2-plugin/5458>\
**Category:** Chef Infra (archive)\
**Created:** [June 25, 2014, 6:39am UTC](https://discourse.chef.io/t/launching-an-ec2-instance-with-multiple-ebs-volumes-using-chef-knife-ec2-plugin/5458 "2014-06-25T06:39:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bhanot\_Jyoti](https://avatars.discourse-cdn.com/v4/letter/b/eb9ed0/32.png) [@Bhanot\_Jyoti](https://discourse.chef.io/u/Bhanot_Jyoti)\
**Post date:** [June 25, 2014, 6:39am UTC](https://discourse.chef.io/t/launching-an-ec2-instance-with-multiple-ebs-volumes-using-chef-knife-ec2-plugin/5458/1 "2014-06-25T06:39:07Z")

</div>

Hi All,

I have launched an EC2 instance in AWS using knife EC2 Plugin and Chef using the following command :

knife ec2 server create --image ami-7c807d14 --flavor t1.micro --region us-east-1 --security-group-ids sg-ID --ebs-size 10 --ebs-no-delete-on-term --tags Name=Test\_Server --server-connect-attribute private\_ip\_address --subnet subnet-ID --ssh-user ec2-user --identity-file ~/.ssh/key.pem --environment Testing --node-name Redhat-Server

In the above command I have used a single EBS volume of size 10. How can I add multiple EBS volumes (EBS, IOPS) at the time of creation of instance by Chef?

Any lead in this regard would be highly appreciated.

Thanks & Regards,  
Jyoti Bhanot

---

<div class="post-metadata">

**Author:** ![Gabriel\_Rosendorf](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/gabriel_rosendorf/32/62_2.png) [@Gabriel\_Rosendorf](https://discourse.chef.io/u/Gabriel_Rosendorf)\
**Post date:** [June 25, 2014, 3:52pm UTC](https://discourse.chef.io/t/launching-an-ec2-instance-with-multiple-ebs-volumes-using-chef-knife-ec2-plugin/5458/2 "2014-06-25T15:52:36Z")

</div>

Check out the AWS community cookbook, we use it to create additional EBS  
volumes and attach them to newly provisioned instances.

[http://community.opscode.com/cookbooks/aws](http://community.opscode.com/cookbooks/aws)

On Wed, Jun 25, 2014 at 2:39 AM, Bhanot, Jyoti [Jyoti.Bhanot@netapp.com](mailto:Jyoti.Bhanot@netapp.com)  
wrote:

> Hi All,
> 
> I have launched an EC2 instance in AWS using knife EC2 Plugin and Chef  
> using the following command :
> 
> _knife ec2 server create --image ami-7c807d14 --flavor t1.micro --region us-east-1 --security-group-ids sg-ID --ebs-size 10 --ebs-no-delete-on-term --tags Name=Test\_Server --server-connect-attribute private\_ip\_address --subnet subnet-ID --ssh-user ec2-user --identity-file ~/.ssh/key.pem --environment Testing --node-name Redhat-Server_
> 
> In the above command I have used a single EBS volume of size 10. How can I  
> add multiple _EBS volumes (EBS, IOPS)_ at the time of creation of  
> instance by Chef?
> 
> Any lead in this regard would be highly appreciated.
> 
> Thanks & Regards,
> 
> \*Jyoti Bhanot \*
