I'm using pulumi.awsx's SecurityGroups, and `creat...
# aws
l
I'm using pulumi.awsx's SecurityGroups, and
createIngressRule()
etc. For at least the rules defined using
location
and
cidrBlocks
, if I update the cidrBlocks, then it causes duplicated security group rules, and errors out. I can't add
deleteBeforeCreate
because the
opts
field on this class takes a CustomResourceOptions, not a ComponentResourceOptions.
The workarounds are 1. to comment out the code, deploy, comment it back in, redeploy, or 2. to migrate the awsx code to aws code and use the SecurityGroup and SecurityGroupRule classes directly.
Is this expected? Is it a bug? Maybe I'm using the
createIngressRule()
methods incorrectly?
g
Sounds like a bug, but is it possible you're creating the same rule with overlapping cidr blocks? I seem to recall I've run into that in the bast and the error message from AWS wasn't immediately obvious that was the issue.