mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
* fix(ec2): ignore ports when revoking an all-traffic rule Revoking an "all traffic" (-1) rule compared ports literally. Terraform's aws_security_group revokes AWS's default egress rule as -1 with FromPort=0 and ToPort=0, which never matched the stored rule (it has no ports), so every new group kept allowing all egress and the next plan wanted to remove it again. AWS ignores ports for -1. Protocols are now compared after the same normalization the security-group evaluation uses, so a revoke naming protocol 6 also matches a tcp rule, as on AWS. * test(ec2): name the all-traffic revoke test a service test * test(ec2): move the all-traffic revoke tests into Ec2ServiceTest Use Ec2ServiceTest's existing mockModeService() instead of a copied mock-mode harness, as requested in review.