gpt4 book ai didi

amazon-ec2 - 橡胶 - SecurityGroupLimitExceeded 超出 VPC 数量

转载 作者:行者123 更新时间:2023-12-04 14:01:51 25 4
gpt4 key购买 nike

我在关注 railscasts使用橡胶将我的 rails 应用程序部署到 ec2。我遇到了以下问题:

$ 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 => You have exceeded the number of VPC security groups allowed per instance. (Fog::Compute::AWS::Error)


我怎样才能避免这个问题?

最佳答案

问题是,默认情况下,橡胶为每个角色创建不同的安全组。您会注意到控制台打印了许多“Creating Security Group #{x}”行。没有请愿的最大允许为 5 ( http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Appendix_Limits.html ) 没有请愿。

首次运行帽橡胶:destroy_all。

要强制橡胶仅使用一个安全组,请进入 Rubber.yml 并设置...
auto_security_groups: 假
isolate_security_groups: 假

之后它可能会起作用,或者您可能会收到错误消息说安全组存在...请到这里阅读如何访问安全组。在面板中删除所有安全组,但“默认”。 http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html#DeleteSecurityGroup

如果您收到有关规则的错误,请在 AWS 面板中选择“默认”用户组。这将提出规则。删除所有自定义 TCP 规则。在此之后,一切都应该有效。您可能需要重复删除组和规则,因为 Rubber 在管理这些方面似乎做得很糟糕。

关于amazon-ec2 - 橡胶 - SecurityGroupLimitExceeded 超出 VPC 数量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18123362/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com