Thread
#general
    d

    dry-beach-58138

    1 month ago
    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 ?
    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

    echoing-dinner-19531

    1 month ago
    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

    dry-beach-58138

    1 month ago
    It was really help, thanks