This message was deleted.
# aws
s
This message was deleted.
w
b
@mammoth-airline-91759 absolutely! tags are not an immutable API call, so just update your code, something like this:
Copy code
const 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",
    }
});
m
I tried adding the
subnets
array, but the
pulumi up
preview showed replacements for all of the vpc components.
b
ah that's probably because the subnets themselves weren't defined, I'd suggest trying @wonderful-twilight-70958's suggestion
m
adding the tags using
ec2.Tag
worked. thanks folks!