mammoth-airline-91759
12/10/2021, 11:02 PMnew awsx.ec2.Vpc("vpc-dev-1", {
cidrBlock: "10.0.0.0/16",
instanceTenancy: "default",
numberOfAvailabilityZones: 3,
numberOfNatGateways: 2,
});
I now realize I need some tags on each public and private subnet. Is there a way to easily go back and add those tags to each subnet without destroying and re-creating the entire stack?wonderful-twilight-70958
12/10/2021, 11:32 PMbillowy-army-68599
12/11/2021, 12:20 AMconst vpc = new awsx.ec2.Vpc(`${name}-vpc`, {
cidrBlock: "172.16.0.0/24",
subnets: [
{
type: "private",
tags: {
"<http://kubernetes.io/role/internal-elb|kubernetes.io/role/internal-elb>": "1",
}
},
{
type: "public",
tags: {
"<http://kubernetes.io/role/elb|kubernetes.io/role/elb>": "1",
}
}],
tags: {
Name: `${name}-vpc`,
Owner: "lbriggs",
owner: "lbriggs",
}
});
mammoth-airline-91759
12/11/2021, 1:02 AMsubnets
array, but the pulumi up
preview showed replacements for all of the vpc components.billowy-army-68599
12/11/2021, 1:28 AMmammoth-airline-91759
12/11/2021, 5:47 AMec2.Tag
worked. thanks folks!