I'm using Pulumi Python SDK to deploy an EC2 insta...
# general
l
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?
k
without seeing the exact code it's hard to say, but you should be using the
Copy code
NetworkInterfaceSecurityGroupAttachment
class to attach additional sg's after the interface / ec2 instance is created