Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ELB in VPC is not supported in this version of API #79

Closed
jslusher opened this issue Jul 28, 2014 · 9 comments
Closed

ELB in VPC is not supported in this version of API #79

jslusher opened this issue Jul 28, 2014 · 9 comments

Comments

@jslusher
Copy link

I'm trying to add instances to an ELB, but it doesn't seem to work in a VPC.

  ================================================================================
Error executing action `register` on resource 'aws_elastic_lb[test-mysql]'

RightAws::AwsError

ValidationError: ELB in VPC is not supported in this version of API. Please try 2011-11-15 or newer.
@Mark-Zarfo
Copy link

Confirmation I'm trying to deploy and having the same problem. May need to work around with installing command line packages for your distro and use execute command until this is resolved, but it is messy.

@heph
Copy link

heph commented Oct 22, 2014

The right_aws gem is woefully out of date. This issue was registered two years ago: flexera-public/right_aws#146

The last closed pull request was nearly a year ago (December 2013). May be time to replace right_aws with fog.

@cwebberOps
Copy link
Contributor

I would love this to be moved to using the aws-sdk gem since it is the officially supported gem from Amazon. I just havent had time to do the porting.

@heph
Copy link

heph commented Oct 23, 2014

Forked to play with replacing right_aws gem with aws-sdk or fog:
Using aws-sdk: https://github.com/heph/aws/tree/aws-sdk_gem
Using fog: https://github.com/heph/aws/tree/fog_gem

Both cases require installing nokogiri as a dependency, which means pulling in build-essential, and installing some package prereqs (libxslt-dev and libxml2-dev), immediately making this less appealing.

May be less ugly if we make the xml cookbook a prereq and install nokogiri with xml::ruby (https://github.com/opscode-cookbooks/xml/blob/master/recipes/ruby.rb). That doesn't avoid the build-essential dependency, but it means someone else is handling the cross-platform libxslt/libxml2 package names.

Wanted your feedback on that before I continued working on the port.

@cwebberOps
Copy link
Contributor

@heph Thanks for starting the work! Hmmmm, nothing about that sounds delightful. I would be interested to hear what @cheeseplus thinks.

@ubiquitousthey
Copy link
Contributor

I just submitted PR #96 which replaces right_as with aws-sdk v2, which does not appear to depend on nokogiri.

@heph
Copy link

heph commented Nov 24, 2014

@ubiquitousthey Great find, checking the PR now :-D

@Scythril
Copy link
Contributor

Just wanted to give you all an update here, since v2.6.0 of the aws cookbook, it is now using the aws-sdk gem, which does support ELBs in a VPC. I had written my own snippet to allow me to do this, but now that they're using the aws-sdk gem, I pulled out my version, and it works with the aws_elastic_lb provider.

@tas50
Copy link
Contributor

tas50 commented Jan 26, 2016

This should be resolved as we cutover to the official AWS gem.

@tas50 tas50 closed this as completed Jan 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants