# Chef-provisioning + EBS/EIP

**URL:** <https://discourse.chef.io/t/chef-provisioning-ebs-eip/6155>\
**Category:** Chef Infra (archive)\
**Created:** [January 13, 2015, 4:37am UTC](https://discourse.chef.io/t/chef-provisioning-ebs-eip/6155 "2015-01-13T04:37:52Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Larry\_Wright](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/larry_wright/32/177_2.png) [@Larry\_Wright](https://discourse.chef.io/u/Larry_Wright)\
**Post date:** [January 13, 2015, 4:37am UTC](https://discourse.chef.io/t/chef-provisioning-ebs-eip/6155/1 "2015-01-13T04:37:52Z")

</div>

I’m digging into Chef Provisioning, but I’m having a hard time figuring out  
how to use AWS features like elastic storage and IP addresses. Has anyone  
done this or am I barking up the wrong tree here?

---

<div class="post-metadata">

**Author:** ![Taras\_Klym](https://avatars.discourse-cdn.com/v4/letter/t/f08c70/32.png) [@Taras\_Klym](https://discourse.chef.io/u/Taras_Klym)\
**Post date:** [January 13, 2015, 8:25am UTC](https://discourse.chef.io/t/chef-provisioning-ebs-eip/6155/2 "2015-01-13T08:25:20Z")

</div>

> **[chef/knife-ec2](https://github.com/chef/knife-ec2)**
>
> knife-ec2 - Chef knife plug-in for AWS EC2

— Оригінальне повідомлення —  
Від кого: “Larry Wright” [larrywright@gmail.com](mailto:larrywright@gmail.com)  
Дата: 13 січня 2015, 06:38:27

I’m digging into Chef Provisioning, but I’m having a hard time figuring out how to use AWS features like elastic storage and IP addresses. Has anyone done this or am I barking up the wrong tree here?

---

<div class="post-metadata">

**Author:** ![Larry\_Wright](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/larry_wright/32/177_2.png) [@Larry\_Wright](https://discourse.chef.io/u/Larry_Wright)\
**Post date:** [January 13, 2015, 1:57pm UTC](https://discourse.chef.io/t/chef-provisioning-ebs-eip/6155/3 "2015-01-13T13:57:36Z")

</div>

That's not exactly what I'm looking for. I'm trying to use  
[GitHub - chef-boneyard/chef-provisioning: A library for creating machines and infrastructures idempotently in Chef.](https://github.com/opscode/chef-provisioning). It works, but doesn't seem to  
support EBS and EIP creation.

On Tue, Jan 13, 2015 at 2:25 AM, [klum\_tz@ukr.net](mailto:klum_tz@ukr.net) wrote:

> [https://docs.chef.io/plugin\_knife\_ec2.html](https://docs.chef.io/plugin_knife_ec2.html)
> 
> --- Оригінальне повідомлення ---  
> Від кого: "Larry Wright" [larrywright@gmail.com](mailto:larrywright@gmail.com)  
> Дата: 13 січня 2015, 06:38:27
> 
> I'm digging into Chef Provisioning, but I'm having a hard time figuring  
> out how to use AWS features like elastic storage and IP addresses. Has  
> anyone done this or am I barking up the wrong tree here?

---

<div class="post-metadata">

**Author:** ![Peter\_Burkholder3](https://avatars.discourse-cdn.com/v4/letter/p/ba9def/32.png) [@Peter\_Burkholder3](https://discourse.chef.io/u/Peter_Burkholder3)\
**Post date:** [January 13, 2015, 3:15pm UTC](https://discourse.chef.io/t/chef-provisioning-ebs-eip/6155/4 "2015-01-13T15:15:46Z")

</div>

You want to use the aws provider from  
[GitHub - chef-boneyard/chef-provisioning-aws: AWS driver and resources for Chef that uses the AWS SDK](https://github.com/opscode/chef-provisioning-aws).

On Tue, Jan 13, 2015 at 8:57 AM, Larry Wright [larrywright@gmail.com](mailto:larrywright@gmail.com) wrote:

> That's not exactly what I'm looking for. I'm trying to use  
> [GitHub - chef-boneyard/chef-provisioning: A library for creating machines and infrastructures idempotently in Chef.](https://github.com/opscode/chef-provisioning). It works, but doesn't seem  
> to support EBS and EIP creation.
> 
> On Tue, Jan 13, 2015 at 2:25 AM, [klum\_tz@ukr.net](mailto:klum_tz@ukr.net) wrote:
> 
> > [https://docs.chef.io/plugin\_knife\_ec2.html](https://docs.chef.io/plugin_knife_ec2.html)
> > 
> > --- Оригінальне повідомлення ---  
> > Від кого: "Larry Wright" [larrywright@gmail.com](mailto:larrywright@gmail.com)  
> > Дата: 13 січня 2015, 06:38:27
> > 
> > I'm digging into Chef Provisioning, but I'm having a hard time figuring  
> > out how to use AWS features like elastic storage and IP addresses. Has  
> > anyone done this or am I barking up the wrong tree here?

--

_Peter Burkholder_ — Customer Success Engineer

Availability: between vacation and travel, I am mostly out-of office until  
Jan 19.

In office/No travel: Dec 29-30, Jan 5, Jan 12-13.

301-204-5767 – [pburkholder@chef.io](mailto:pburkholder@chef.io) – \*my: \*Linkedin  
[http://www.linkedin.com/in/pburkholder](http://www.linkedin.com/in/pburkholder) Twitter  
[http://www.twitter.com/pburkholder](http://www.twitter.com/pburkholder) Cal  
[https://www.google.com/calendar/embed?src=pburkholder%40chef.io&mode=WEEK](https://www.google.com/calendar/embed?src=pburkholder%40chef.io&mode=WEEK)  
endar

_CHEF_

[CHEF.IO](http://CHEF.IO) [http://www.chef.io/](http://www.chef.io/)

TM

_[chef.io](http://chef.io)_ [http://www.chef.io/](http://www.chef.io/) Blog [http://www.chef.io/blog/](http://www.chef.io/blog/) Facebook  
[https://www.facebook.com/getchefdotcom](https://www.facebook.com/getchefdotcom) Twitter  
[https://twitter.com/chef](https://twitter.com/chef) Youtube [https://www.youtube.com/getchef](https://www.youtube.com/getchef)

---

<div class="post-metadata">

**Author:** ![Larry\_Wright](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/larry_wright/32/177_2.png) [@Larry\_Wright](https://discourse.chef.io/u/Larry_Wright)\
**Post date:** [January 13, 2015, 4:01pm UTC](https://discourse.chef.io/t/chef-provisioning-ebs-eip/6155/5 "2015-01-13T16:01:15Z")

</div>

Yes, I found the aws provider, and while there is support for creating EBS  
volumes and EIPs in there, there does not appear to be any means for  
assigning them to instances created using the machine resource, unless I'm  
missing something.

On Tue, Jan 13, 2015 at 9:15 AM, Peter Burkholder [pburkholder@chef.io](mailto:pburkholder@chef.io)  
wrote:

> You want to use the aws provider from  
> [GitHub - chef-boneyard/chef-provisioning-aws: AWS driver and resources for Chef that uses the AWS SDK](https://github.com/opscode/chef-provisioning-aws).
> 
> On Tue, Jan 13, 2015 at 8:57 AM, Larry Wright [larrywright@gmail.com](mailto:larrywright@gmail.com)  
> wrote:
> 
> > That's not exactly what I'm looking for. I'm trying to use  
> > [GitHub - chef-boneyard/chef-provisioning: A library for creating machines and infrastructures idempotently in Chef.](https://github.com/opscode/chef-provisioning). It works, but doesn't seem  
> > to support EBS and EIP creation.
> > 
> > On Tue, Jan 13, 2015 at 2:25 AM, [klum\_tz@ukr.net](mailto:klum_tz@ukr.net) wrote:
> > 
> > > [https://docs.chef.io/plugin\_knife\_ec2.html](https://docs.chef.io/plugin_knife_ec2.html)
> > > 
> > > --- Оригінальне повідомлення ---  
> > > Від кого: "Larry Wright" [larrywright@gmail.com](mailto:larrywright@gmail.com)  
> > > Дата: 13 січня 2015, 06:38:27
> > > 
> > > I'm digging into Chef Provisioning, but I'm having a hard time figuring  
> > > out how to use AWS features like elastic storage and IP addresses. Has  
> > > anyone done this or am I barking up the wrong tree here?
> 
> --
> 
> _Peter Burkholder_ — Customer Success Engineer
> 
> Availability: between vacation and travel, I am mostly out-of office until  
> Jan 19.
> 
> In office/No travel: Dec 29-30, Jan 5, Jan 12-13.
> 
> 301-204-5767 – [pburkholder@chef.io](mailto:pburkholder@chef.io) – \*my: \*Linkedin  
> [http://www.linkedin.com/in/pburkholder](http://www.linkedin.com/in/pburkholder) Twitter  
> [http://www.twitter.com/pburkholder](http://www.twitter.com/pburkholder) Cal  
> [https://www.google.com/calendar/embed?src=pburkholder%40chef.io&mode=WEEK](https://www.google.com/calendar/embed?src=pburkholder%40chef.io&mode=WEEK)  
> endar
> 
> _CHEF_
> 
> [CHEF.IO](http://CHEF.IO) [http://www.chef.io/](http://www.chef.io/)
> 
> TM
> 
> _[chef.io](http://chef.io)_ [http://www.chef.io/](http://www.chef.io/) Blog [http://www.chef.io/blog/](http://www.chef.io/blog/)  
> Facebook [https://www.facebook.com/getchefdotcom](https://www.facebook.com/getchefdotcom) Twitter  
> [https://twitter.com/chef](https://twitter.com/chef) Youtube [https://www.youtube.com/getchef](https://www.youtube.com/getchef)

---

<div class="post-metadata">

**Author:** ![Mark\_Pimentel](https://avatars.discourse-cdn.com/v4/letter/m/9f8e36/32.png) [@Mark\_Pimentel](https://discourse.chef.io/u/Mark_Pimentel)\
**Post date:** [January 13, 2015, 4:19pm UTC](https://discourse.chef.io/t/chef-provisioning-ebs-eip/6155/6 "2015-01-13T16:19:45Z")

</div>

I have recently done some work in this. To get additional volumes created  
you will have to define block\_device\_mappings in the bootstrap\_options key  
of the machine\_options like so.

machine 'name' do  
machine\_options(  
bootstrap\_options: {  
block\_device\_mapping: [  
{ 'DeviceName' =\> '/dev/sda1', 'VirtualName' =\> '/dev/sda1',  
'Ebs.VolumeSize' =\> 30 }  
]  
}  
)  
end

As for the EIP, I haven't had to get one of those assigned as of yet. Hope  
that helps!

On Tue, Jan 13, 2015 at 11:01 AM, Larry Wright [larrywright@gmail.com](mailto:larrywright@gmail.com)  
wrote:

> Yes, I found the aws provider, and while there is support for creating EBS  
> volumes and EIPs in there, there does not appear to be any means for  
> assigning them to instances created using the machine resource, unless I'm  
> missing something.
> 
> On Tue, Jan 13, 2015 at 9:15 AM, Peter Burkholder [pburkholder@chef.io](mailto:pburkholder@chef.io)  
> wrote:
> 
> > You want to use the aws provider from  
> > [GitHub - chef-boneyard/chef-provisioning-aws: AWS driver and resources for Chef that uses the AWS SDK](https://github.com/opscode/chef-provisioning-aws).
> > 
> > On Tue, Jan 13, 2015 at 8:57 AM, Larry Wright [larrywright@gmail.com](mailto:larrywright@gmail.com)  
> > wrote:
> > 
> > > That's not exactly what I'm looking for. I'm trying to use  
> > > [GitHub - chef-boneyard/chef-provisioning: A library for creating machines and infrastructures idempotently in Chef.](https://github.com/opscode/chef-provisioning). It works, but doesn't  
> > > seem to support EBS and EIP creation.
> > > 
> > > On Tue, Jan 13, 2015 at 2:25 AM, [klum\_tz@ukr.net](mailto:klum_tz@ukr.net) wrote:
> > > 
> > > > [https://docs.chef.io/plugin\_knife\_ec2.html](https://docs.chef.io/plugin_knife_ec2.html)
> > > > 
> > > > --- Оригінальне повідомлення ---  
> > > > Від кого: "Larry Wright" [larrywright@gmail.com](mailto:larrywright@gmail.com)  
> > > > Дата: 13 січня 2015, 06:38:27
> > > > 
> > > > I'm digging into Chef Provisioning, but I'm having a hard time figuring  
> > > > out how to use AWS features like elastic storage and IP addresses. Has  
> > > > anyone done this or am I barking up the wrong tree here?
> > 
> > --
> > 
> > _Peter Burkholder_ — Customer Success Engineer
> > 
> > Availability: between vacation and travel, I am mostly out-of office  
> > until Jan 19.
> > 
> > In office/No travel: Dec 29-30, Jan 5, Jan 12-13.
> > 
> > 301-204-5767 – [pburkholder@chef.io](mailto:pburkholder@chef.io) – \*my: \*Linkedin  
> > [http://www.linkedin.com/in/pburkholder](http://www.linkedin.com/in/pburkholder) Twitter  
> > [http://www.twitter.com/pburkholder](http://www.twitter.com/pburkholder) Cal  
> > [https://www.google.com/calendar/embed?src=pburkholder%40chef.io&mode=WEEK](https://www.google.com/calendar/embed?src=pburkholder%40chef.io&mode=WEEK)  
> > endar
> > 
> > _CHEF_
> > 
> > [CHEF.IO](http://CHEF.IO) [http://www.chef.io/](http://www.chef.io/)
> > 
> > TM
> > 
> > _[chef.io](http://chef.io)_ [http://www.chef.io/](http://www.chef.io/) Blog [http://www.chef.io/blog/](http://www.chef.io/blog/)  
> > Facebook [https://www.facebook.com/getchefdotcom](https://www.facebook.com/getchefdotcom) Twitter  
> > [https://twitter.com/chef](https://twitter.com/chef) Youtube [https://www.youtube.com/getchef](https://www.youtube.com/getchef)

--  
Thanks,

Mark

---

<div class="post-metadata">

**Author:** ![Mark\_Pimentel](https://avatars.discourse-cdn.com/v4/letter/m/9f8e36/32.png) [@Mark\_Pimentel](https://discourse.chef.io/u/Mark_Pimentel)\
**Post date:** [January 13, 2015, 4:21pm UTC](https://discourse.chef.io/t/chef-provisioning-ebs-eip/6155/7 "2015-01-13T16:21:19Z")

</div>

Also, for additional volumes from a snapshot add the Ebs.SnapshotId key if  
it is based on a snapshot.

On Tue, Jan 13, 2015 at 11:19 AM, Mark Pimentel [markpimentel22@gmail.com](mailto:markpimentel22@gmail.com)  
wrote:

> I have recently done some work in this. To get additional volumes created  
> you will have to define block\_device\_mappings in the bootstrap\_options key  
> of the machine\_options like so.
> 
> machine 'name' do  
> machine\_options(  
> bootstrap\_options: {  
> block\_device\_mapping: [  
> { 'DeviceName' =\> '/dev/sda1', 'VirtualName' =\> '/dev/sda1',  
> 'Ebs.VolumeSize' =\> 30 }  
> ]  
> }  
> )  
> end
> 
> As for the EIP, I haven't had to get one of those assigned as of yet.  
> Hope that helps!
> 
> On Tue, Jan 13, 2015 at 11:01 AM, Larry Wright [larrywright@gmail.com](mailto:larrywright@gmail.com)  
> wrote:
> 
> > Yes, I found the aws provider, and while there is support for creating  
> > EBS volumes and EIPs in there, there does not appear to be any means for  
> > assigning them to instances created using the machine resource, unless I'm  
> > missing something.
> > 
> > On Tue, Jan 13, 2015 at 9:15 AM, Peter Burkholder [pburkholder@chef.io](mailto:pburkholder@chef.io)  
> > wrote:
> > 
> > > You want to use the aws provider from  
> > > [GitHub - chef-boneyard/chef-provisioning-aws: AWS driver and resources for Chef that uses the AWS SDK](https://github.com/opscode/chef-provisioning-aws).
> > > 
> > > On Tue, Jan 13, 2015 at 8:57 AM, Larry Wright [larrywright@gmail.com](mailto:larrywright@gmail.com)  
> > > wrote:
> > > 
> > > > That's not exactly what I'm looking for. I'm trying to use  
> > > > [GitHub - chef-boneyard/chef-provisioning: A library for creating machines and infrastructures idempotently in Chef.](https://github.com/opscode/chef-provisioning). It works, but doesn't  
> > > > seem to support EBS and EIP creation.
> > > > 
> > > > On Tue, Jan 13, 2015 at 2:25 AM, [klum\_tz@ukr.net](mailto:klum_tz@ukr.net) wrote:
> > > > 
> > > > > [https://docs.chef.io/plugin\_knife\_ec2.html](https://docs.chef.io/plugin_knife_ec2.html)
> > > > > 
> > > > > --- Оригінальне повідомлення ---  
> > > > > Від кого: "Larry Wright" [larrywright@gmail.com](mailto:larrywright@gmail.com)  
> > > > > Дата: 13 січня 2015, 06:38:27
> > > > > 
> > > > > I'm digging into Chef Provisioning, but I'm having a hard time  
> > > > > figuring out how to use AWS features like elastic storage and IP addresses.  
> > > > > Has anyone done this or am I barking up the wrong tree here?
> > > 
> > > --
> > > 
> > > _Peter Burkholder_ — Customer Success Engineer
> > > 
> > > Availability: between vacation and travel, I am mostly out-of office  
> > > until Jan 19.
> > > 
> > > In office/No travel: Dec 29-30, Jan 5, Jan 12-13.
> > > 
> > > 301-204-5767 – [pburkholder@chef.io](mailto:pburkholder@chef.io) – \*my: \*Linkedin  
> > > [http://www.linkedin.com/in/pburkholder](http://www.linkedin.com/in/pburkholder) Twitter  
> > > [http://www.twitter.com/pburkholder](http://www.twitter.com/pburkholder) Cal  
> > > [https://www.google.com/calendar/embed?src=pburkholder%40chef.io&mode=WEEK](https://www.google.com/calendar/embed?src=pburkholder%40chef.io&mode=WEEK)  
> > > endar
> > > 
> > > _CHEF_
> > > 
> > > [CHEF.IO](http://CHEF.IO) [http://www.chef.io/](http://www.chef.io/)
> > > 
> > > TM
> > > 
> > > _[chef.io](http://chef.io)_ [http://www.chef.io/](http://www.chef.io/) Blog [http://www.chef.io/blog/](http://www.chef.io/blog/)  
> > > Facebook [https://www.facebook.com/getchefdotcom](https://www.facebook.com/getchefdotcom) Twitter  
> > > [https://twitter.com/chef](https://twitter.com/chef) Youtube [https://www.youtube.com/getchef](https://www.youtube.com/getchef)
> 
> --  
> Thanks,
> 
> Mark

--  
Thanks,

Mark
