amazon ec2 - rubber - SecurityGroupLimitExceeded exceeded the number of VPC -


i following railscasts use rubber deploy rails app ec2. got following problem:

$ cap rubber:create_staging

..... (omit successful part)

/users/brian/.rvm/gems/ruby-1.9.3-p327/gems/excon-0.25.3/lib/excon/middlewares/expects.rb:10:in `response_call': securitygrouplimitexceeded => have exceeded number of vpc security groups allowed per instance. (fog::compute::aws::error)

how can avoid problem?

the issue default rubber creating different security groups each role. notice console printing numerous "creating security group #{x}" lines. max allowed without petitioning 5 (http://docs.aws.amazon.com/amazonvpc/latest/userguide/vpc_appendix_limits.html) without petitioning.

first run cap rubber:destroy_all.

to force rubber use 1 security group go rubber.yml , set... auto_security_groups: false isolate_security_groups: false

after may work, or may error saying security groups exists... go here read how access security groups. once in panel delete security groups "default". http://docs.aws.amazon.com/amazonvpc/latest/userguide/vpc_securitygroups.html#deletesecuritygroup

if getting errors rules, select "default" user group in aws panel . bring rules. delete custom tcp rules. after should work. may need repeat deleting groups , rules, since rubber seems terrible job of managing those.


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -