busy-magazine-6225
01/22/2022, 1:05 AM/** Create vpc */
const vpc = new aws.ec2.Vpc(
`${opts.name}-vpc`,
{
cidrBlock: opts.vpcCidr,
enableDnsHostnames: true,
tags: { Name: `${opts.name}-vpc` }
},
{ parent: this }
);
/** Create internet gateway for VPC */
const internetGateway = new aws.ec2.InternetGateway(
`${opts.name}-igw`,
{
vpcId: vpc.id,
tags: { Name: `${opts.name}-igw` }
},
{ parent: this, dependsOn: vpc }
);
It always deletes the VPC firstlittle-cartoon-10569
01/23/2022, 8:44 PMup
), then seeing if that dependency works? It's just a workaround and shouldn't be necessary...busy-magazine-6225
01/24/2022, 7:05 PM