I'm trying to create a GCE Instance Template with ...
# google-cloud
b
I'm trying to create a GCE Instance Template with tags set (so I can match from a firewall rule), but unfortunately, they don't appear on the created resource in Google Cloud. Has anybody encountered a similar behavior? (I'm using
@pulumi/gcp@7.37.0
,
@pulumi/pulumi@3.129.0
) Here's the relevant code snippet (
labels
show up fine,
tags
seem to be completely ignored):
Copy code
const instanceTemplate = new gcp.compute.InstanceTemplate("inst-template", {
    region,
    machineType: "e2-standard-8",
    disks: [/*...*/],
    networkInterfaces: [/*...*/],
    tags: ["ssh"],
    labels: {
        environment: "playground",
    },
    serviceAccount: {
        email: sa.email,
        scopes: ["<https://www.googleapis.com/auth/cloud-platform>"],
    },
    scheduling: {
        preemptible: true,
        automaticRestart: false, // required for preemptible instances
    },
});
Pulumi AI was unable to help, but at least it could give me a nice strawberry margarita recipe 😄 https://www.pulumi.com/ai/conversations/087ece48-473e-419c-9e1d-ec9dabed4c70