This message was deleted.
# general
s
This message was deleted.
w
This is generally why you use the
SecurityGroupRule
resource instead of specifying the rules inline in the
SecurityGroup
. See notes on https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/aws/ec2/#SecurityGroupRule.
c
If I'm reading the documentation right, it says SecurityGroupRules work with "external" Security Groups. So if I'm creating security groups with Pulumi, that doesn't seem to work?
Puzzling through, it looks like I can omit the ingress/egress inline and then attach the SecurityGroupRules to the security group id.
w
That's right - the latter is the "right" way to do this in Pulumi and Terraform for maximum flexibility.