You may not specify a referenced group id for an existing IPv4 CIDR rule. prompt when editing the Inbound rule in AWS Security Group
Asked Answered
S

6

104

In AWS EC2, I start a Classical Load Balancer in front of EC2 instance (security group of EC2 instance is launch-wizard-3).

I want to change the inbound rule of Security Group of EC2 instance . A security group for Classical Load Balancer (its name is my-first-load-balancer-sg) was also started. When I am changing source of an inbound rule of launch-wizard-3 to the my-first-load-balancer-sg, following error is prompted.

You may not specify a referenced group id for an existing IPv4 CIDR rule.

the inbound rule as follows

(type-HTTP, protocol-TCP, port rang-80, Source type- Custom, Source- my-first-load-balancer-sg(what i want to place) )

I tried many times to solve it, but I couldn't.

Stylist answered 24/7, 2021 at 14:54 Comment(1)
try adding a new rule instead, and then removing hte CIDR (eg subnet/ip) based rule afterwards.Anaemic
S
318

I solved this from deleting the existing rule and creating a new rule

Stylist answered 24/7, 2021 at 18:14 Comment(4)
Fine, but how did you find the existing rule? It doesn't tell you what that is.Parik
But why must it be this way? Is Amazon not a billion dollar company that could solve this issue?Lenlena
With existing rule you already have a Security group rule ID assigned that is causing problem/conflict. When you create a new rule then this Security group rule ID is not yet assigned. That's why you are not able to edit an existing rule but by creating a new rule works.Backwoodsman
I think the problem might be the fact that the interface is a bit misleading. When I went to edit rules, I thought simply changing the existing default rule (all traffic at all ports originating from the security group) was going to work, but I had to "Add rule" instead.Nakasuji
E
14

Simply delete and Add a new rule with the options you require.

Exhilarative answered 25/7, 2022 at 19:6 Comment(1)
Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.Ringlet
T
4

AWS Database security group configuration

Please follow the below process:

Tolerant answered 13/10, 2021 at 11:55 Comment(0)
P
2

Delete your second default-created inbound rules and recreate new inbound rules

Presumptuous answered 24/8, 2023 at 13:9 Comment(0)
M
1

Your new rule is conflicting with the existing rules, so modify the existing rule or delete and save and then create a new rule altogether.

Meingoldas answered 11/3, 2023 at 3:31 Comment(0)
H
0

Delete the existing rule and add a new rule. It would work.

Hypoderma answered 13/7, 2023 at 10:30 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.