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


#1

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


#2

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

On Wed, Jun 25, 2014 at 2:39 AM, Bhanot, Jyoti 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 *