-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
bug: duplicate EC2 security group rules #11512
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
Comments
Hello 👋! It looks like this issue hasn’t been active in longer than five months. We encourage you to check if this is still an issue in the latest release. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or upvote with a reaction on the initial post to prevent automatic closure. If the issue is already closed, please feel free to open a new one. |
This is still an issue in LocalStack 4.1.1 (build date: |
Hi @mcieno - sorry for the late reply. |
Hi @dfangl, unsure what change fixed this but yes, it's resolved in 4.4.0 🎉 Thank you |
Uh oh!
There was an error while loading. Please reload this page.
Is there an existing issue for this?
Current Behavior
Some security group rules added via
ec2:AuthorizeSecurityGroupIngress
are duplicated.Expected Behavior
Security group rules should not be duplicated.
How are you starting LocalStack?
With a docker-compose file
Steps To Reproduce
How are you starting localstack
Client commands
Create a security group
Add some rules
Output
Make sure the rules have been added correctly
awslocal ec2 describe-security-group-rules \ --filters="Name=group-id,Values=${group_id}"
Output
Invoke
ec2:DescribeSecurityGroups
operationOutput
Check the rules again,
second rule
is now duplicatedawslocal ec2 describe-security-group-rules \ --filters="Name=group-id,Values=${group_id}"
Output
Environment
Anything else?
I observed that immediately after adding the rules everything looks normal. Yet, after invoking
ec2:DescribeSecurityGroups
, the duplicates appear.Hence, it appears to me that this bug is related to some side effect of
ec2:DescribeSecurityGroups
operation trying to group rules when, for example, "from" and "to" ports are the same.Also note how the output of
authorize-security-group-ingress
is incorrect (it shows one rule instead of two).Debug logs
The text was updated successfully, but these errors were encountered: