I'm using Pulumi Python SDK to deploy an EC2 instance with one security group attached. If I attach additional security group to that same instance, Pulumi terminates previously create EC2 instance and deploys a new instance with 2 security groups.
Is it possible to avoid EC2 instance termination and instruct Pulumi to simply attach additional security group to existing instance?
06/01/2020, 11:48 AM
without seeing the exact code it's hard to say, but you should be using the
class to attach additional sg's after the interface / ec2 instance is created