Chandan,
You might want to look at the aws cookbook:
http://community.opscode.com/cookbooks/aws
For example, to register the node in the 'QA' ELB:
aws_elastic_lb "elb_qa" do
aws_access_key aws['aws_access_key_id']
aws_secret_access_key aws['aws_secret_access_key']
name "QA"
action :register
end
-M
On Tue, May 28, 2013 at 9:27 AM, Chandan Maheshwari
< "> > wrote:
> Hi All,
>
> 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)
>
> --
> Thanks and Regards,
> Chandan
Archive powered by MHonArc 2.6.16.