bug: duplicate EC2 security group rules #11512
Labels
aws:ec2
Amazon Elastic Compute Cloud
status: backlog
Triaged but not yet being worked on
type: bug
Bug report
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: