outbound networks methods dont' work with imported security groups #4361
Labels
@aws-cdk/aws-ec2
Related to Amazon Elastic Compute Cloud
guidance
Question that needs advice or information.
language/python
Related to Python bindings
I'm trying to upload the rules in outbound for two existing secgroup:
now the inbound method works correctly such as:
allow_from_any_ipv4
orallow_from
or also this it works:
even the add_ingress_rule works
However If I use the outbound methods it doesn't work.
fe_sg.connections.allow_to(as_sg.connections, ec2.Port.tcp(444))
it updates only the Ingress rules. this behavior is not present with security groups created with the CDK.
I'm also used the add_egress_rule without success
ingress example:
egress:
the issue is also present if I try to update the outbound rules of an existing secgroup for a sec group created in the CDK.
Reproduction Steps
import an existing security group.
try to update its egress rules
Error Log
Environment
Other
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: