Failed to create Security Group when prompting 'The maximum number of rules per security group has been reached.'

0

I had attempted to create a security group in my VPC. However, it continually prompting that 'The maximum number of rules per security group has been reached.', even I only added ONE inbound rule. Have anyone found the same experience and your workaround?

Failed to create security group

More update:

  1. If I added the rules with a specify IPv4 CIDER in 'source', it could be created;
  2. If I added the rules with a managed prefix list in 'source', it will reproduce the issue.
JayAU
已提问 3 个月前400 查看次数
2 回答
2
已接受的回答

I finally dig out the root cause. When I created the Managed Prefix List, I configured the max size of the Prefix List as 64. When I added the inbound rule, I use that prefix list as source, then it failed to created the SG as the default limited is 60 rules per SG.

JayAU
已回答 3 个月前
profile picture
专家
已审核 2 个月前
0

Hi, If you're receiving the error message "The maximum number of rules per security group has been reached" even after adding only one inbound rule, there are a few potential reasons for this:

1)Total Rules Limit: Each security group has a limit on the total number of inbound and outbound rules that can be added. If your security group already has the maximum number of rules allowed, you won't be able to add any additional rules, even if you're only adding one rule.

2) Combination of Inbound and Outbound Rules: Remember that both inbound and outbound rules count towards the total number of rules allowed for a security group. If your security group already has a significant number of outbound rules, adding even one inbound rule could exceed the total rules limit.

  1. Security Group Quotas: AWS imposes quotas on the number of security groups and rules per security group that you can create within your account. If you've reached these quotas, you won't be able to create additional security groups or add more rules to existing security groups.

To resolve this issue, you can consider the following steps:

. Review your existing security group configuration and identify any redundant or unnecessary rules. Removing unused rules can free up space for adding new rules. . If possible, consolidate rules by combining similar rules into a smaller number of broader rules. This can help reduce the overall number of rules in your security groups. .Check your account's quotas for security groups and rules to ensure that you haven't reached the maximum limits. If necessary, you can request a quota increase from AWS Support. .If you have multiple security groups with similar rules, consider merging them into a single security group to simplify management and reduce the total number of rules.

By optimizing your security group configuration and managing your resources efficiently, you should be able to resolve the issue of reaching the maximum number of rules per security group.

profile picture
已回答 3 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则