- From: Joshua Timberman <
>
- To: "
" <
>
- Subject: [chef] Re: Attach an ec2 instance on the existing ELB
- Date: Tue, 28 May 2013 16:02:58 +0000
- Accept-language: en-US
Ohai,
What is the goal here? Are you trying to set up something for autoscaling? Or
are you just looking to register new nodes with an ELB?
If you're doing autoscaling, I'd consider building a custom AMI for the nodes
that need to autoscale. I'd make that with the validation.pem and JSON with
the run list for the nodes you want, and also sets up chef-client to run at
launch or as a service.
If you just want to add nodes to an ELB, Opscode's "aws" cookbook has an
elastic_lb resource, which you could use in your own cookbook. I'd assign the
ELB name as an attribute in the role for the node's in the role you want to
use, and then reference that attribute in the resource.
aws_elastic_lb 'my-load-balancer' do
name node['aws']['load_balancer']
aws_access_key aws['aws_access_key_id']
aws_secret_access_key aws['aws_secret_access_key']
end
On May 28, 2013, at 7:27 AM, Chandan Maheshwari
<
>
wrote:
>
>
I want to attach an ec2 instance, once it is created using knife ec2 plugin
>
and after applying my runlist to it, to the existing ELB I have.
>
>
How can I do this, is there any ready cookbook/LWRP for this. I have one
>
very good solution to this, thanks to Ivan [which is working fine and
>
creating the instances, attaching them to the ELB I provide] :
>
http://ivan-site.com/2013/02/auto-scaling-on-amazon-ec2-with-opscode-chef/
>
>
but I don't want to create instance without using knife (and manually
>
install chef-client and dependencies)
- [chef] Re: Re: Attach an ec2 instance on the existing ELB, (continued)
[chef] Re: Attach an ec2 instance on the existing ELB, Joshua Timberman, 05/28/2013
Archive powered by MHonArc 2.6.16.