sparse-intern-71089
03/08/2023, 2:05 AMbillowy-army-68599
pulumi import
to generate the code? if so it should have the correct nameechoing-address-44214
03/08/2023, 2:14 AMbillowy-army-68599
new aws.ec2.SecurityGroup(
"ruwentest",
{
description: "ruwentest",
vpcId: "vpc-123",
ingress: []
},
{ import: <id> }
);
What you could do is have a configurable flag that can be toggled if you’re importingbillowy-army-68599
echoing-address-44214
03/08/2023, 2:17 AMpulumi refreh
and pulumi up
pulumi wants to replace the security group because the name has changedbillowy-army-68599
echoing-address-44214
03/08/2023, 2:18 AMechoing-address-44214
03/08/2023, 2:23 AMechoing-address-44214
03/08/2023, 2:23 AMnew aws.ec2.SecurityGroup(
"ruwentest",
{
description: "ruwentest",
vpcId: standardAwsEnvironment.getVpcId(),
ingress: [],
// name: "ruwentest-52f4618",
},
{ import: "sg-0c09aeb634822eed9" }
);
echoing-address-44214
03/08/2023, 2:26 AMruwentest-5f93af2
and that clashes with the existing name ruwentest-52f4618
echoing-address-44214
03/08/2023, 2:42 AMbillowy-army-68599
echoing-address-44214
03/08/2023, 2:47 AMbillowy-army-68599
billowy-army-68599
echoing-address-44214
03/08/2023, 2:55 AMbillowy-army-68599
echoing-address-44214
03/08/2023, 3:04 AMechoing-address-44214
03/08/2023, 3:05 AMechoing-address-44214
03/08/2023, 3:07 AMechoing-address-44214
03/08/2023, 3:08 AMbillowy-army-68599
echoing-address-44214
03/08/2023, 3:15 AMechoing-address-44214
03/08/2023, 3:16 AMbillowy-army-68599
echoing-address-44214
03/08/2023, 4:01 AMsalmon-gold-74709
03/20/2023, 7:09 PMechoing-address-44214
03/20/2023, 11:19 PM