[chef] Re: Re: Attach an ec2 instance on the existing ELB


Chronological Thread 
  • From: Chandan Maheshwari < >
  • To: chef < >
  • Subject: [chef] Re: Re: Attach an ec2 instance on the existing ELB
  • Date: Tue, 28 May 2013 21:27:48 +0530

Thanks Mike for your prompt response.

I was just looking on the same cookbook and wrote once recipe(to register my ec2 instance), but it gave me error
Suppose,

my ELB is NAME
cookbook having recipe to register instance is cookbook_name

FATAL: RightAws::AwsError: aws_elastic_lb[NAME] (cookbook_name::register line 3) had an error: RightAws::AwsError: ValidationError: ELB in VPC is not supported in this version of API. Please try 2011-11-15 or newer.


On Tue, May 28, 2013 at 9:24 PM, Mike < " target="_blank"> > wrote:
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



--
Regards,
Chandan



Archive powered by MHonArc 2.6.16.

§