Hi, I was using Pulumi and import exist AWS resour...
# general
d
Hi, I was using Pulumi and import exist AWS resources the VPC and Subnet I add ResourceOptions parent=VPC in Subnet It will try to delete my Subnet and create a new one, but fail with protect what should I do for add parent ResourceOptions without delete exist Subnet ?
Copy code
Type                  Name            Plan       Info
     pulumi:pulumi:Stack   kms-dev                    1 error
     ├─ aws:ec2:Vpc        vpn_vpc                    [diff: +enableDnsSupport,instanceTenancy~__defaults]
 +   │  └─ aws:ec2:Subnet  vpc-jp-subnet1  create
 -   └─ aws:ec2:Subnet     vpc-jp-subnet1  delete     1 error
e
If you don't want to delete the existing one, use an alias to move it: https://www.pulumi.com/docs/intro/concepts/resources/options/aliases/
d
It was really help, thanks