This message was deleted.
# aws
s
This message was deleted.
v
Or there is some kind of
deleteBeforeUpdate
b
can you share your currtent code?
v
@billowy-army-68599 Sure
Copy code
new awsx.ec2.SecurityGroup(
  'platform-lb-sg',
  {
    vpc,
    ingress: [
      { fromPort: 80, toPort: 80, protocol: 'tcp', cidrBlocks: ['0.0.0.0/0'] },
      { fromPort: 1234, toPort: 1234, protocol: 'tcp', cidrBlocks: ['0.0.0.0/0'] },
      { fromPort: 8000, toPort: 8000, protocol: 'tcp', cidrBlocks: ['0.0.0.0/0'] }
    ],
    egress: [{ fromPort: 0, toPort: 65535, protocol: 'tcp', cidrBlocks: [ '0.0.0.0/0' ] }],
  }
)
It is just an example, but the thing is that it tries to recreate the rule but it already exists
destroying and recreating also works. But if I include a new rule in later on I get the same error.
b
this looks to be a bug in
awsx
to me, it should be autonaming to prevent this kind of conflict
if you do use
aws.ec2.SecurityGroup
(not the missing x) does it work?