Chandan,
That looks to be a bug with the right_aws gem that the aws cookbook
depends on, and there is an open issue here:
https://github.com/rightscale/right_aws/issues/146
I suspect is has to do with the case of ELB and VPC combination, and
hopefully sometime that will get merged in and released, irrespective
of Chef.
-M
On Tue, May 28, 2013 at 11:57 AM, Chandan Maheshwari
< "> > wrote:
> 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 < "> > 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.