sparse-intern-71089
01/05/2023, 2:07 PMelegant-architect-38580
01/05/2023, 2:28 PMbillowy-army-68599
aws.ec2.SecurityGroup
elegant-architect-38580
01/05/2023, 6:08 PMelegant-architect-38580
01/05/2023, 6:13 PMpulumi import aws:ec2/securityGroupRule:SecurityGroupRule <name_of resource_set_by_pulumi_program> <import_resource_reference>
billowy-army-68599
elegant-architect-38580
01/05/2023, 6:19 PMconst natGatewayPublicIps = getConfigSection<string[]>('natGatewayPublicIps');
natGatewayPublicIps.forEach((publicIp: string, index: number) => {
this.securityGroup.createIngressRule(`${this._serviceName}-nat-gateway-ingress-${index}`, {
fromPort: 443,
toPort: 443,
protocol: 'tcp',
cidrBlocks: [`${publicIp}/32`],
});
});
}
I need to import some additional IP's to the list which was click-opsed on the security groupbillowy-army-68599
elegant-architect-38580
01/05/2023, 6:23 PMelegant-architect-38580
01/05/2023, 6:23 PMbillowy-army-68599
--parent
flag but with awsx before v1 and what you’re doing it’s a not easy to explain over slackelegant-architect-38580
01/05/2023, 6:24 PMelegant-architect-38580
01/05/2023, 7:28 PMpulumi state delete
. get this error:
error: No such resource "urn:pulumi:production::<stackname>::awsx:x:ec2:SecurityGroup:x:ec2:IngressSecurityGroupRule::<pulumi name of resource>" exists in the current state
Is this also because of the parent dependies? Doesn't look like pulumi state delete supports defining parentselegant-architect-38580
01/05/2023, 7:29 PMbillowy-army-68599
$
in therebillowy-army-68599
pulumi state delete '<urn>'
billowy-army-68599
'
instead of `"`”elegant-architect-38580
01/05/2023, 8:40 PM"
but added '
which fixed it for me