Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

google_compute_instance_from_template does not use template labels #21693

Open
cen1 opened this issue Mar 4, 2025 · 0 comments
Open

google_compute_instance_from_template does not use template labels #21693

cen1 opened this issue Mar 4, 2025 · 0 comments
Labels
bug forward/review In review; remove label to forward service/compute-instances

Comments

@cen1
Copy link

cen1 commented Mar 4, 2025

Community Note

Labels set on instance template are not set on the instance.

Plan

# module.my.google_compute_instance_template.default will be created
  + resource "google_compute_instance_template" "default" {
      ...
      + effective_labels     = {
          + "goog-terraform-provisioned" = "true"
          + "node-type"                  = "my-node"
        },
      + labels               = {
          + "node-type" = "my-node"
        }
      + terraform_labels     = {
          + "goog-terraform-provisioned" = "true"
          + "node-type"                  = "my-node"
        }


# module.my.google_compute_instance_from_template.default will be created
  + resource "google_compute_instance_from_template" "default" {
         ...
          + effective_labels           = {
          + "goog-terraform-provisioned" = "true"
        },
        + terraform_labels           = {
          + "goog-terraform-provisioned" = "true"
        }
      }

Terraform Version & Provider Version(s)

Terraform v1.10.5
on amd64

  • provider registry.terraform.io/hashicorp/google v6.22.0

Affected Resource(s)

google_compute_instance_from_template

Terraform Configuration

Debug Output

No response

Expected Behavior

Labels from template are applied on the instance.

Actual Behavior

Labels from template are not applied on the instance.

Steps to reproduce

No response

Important Factoids

No response

References

No response

@cen1 cen1 added the bug label Mar 4, 2025
@github-actions github-actions bot added forward/review In review; remove label to forward service/compute-instances labels Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug forward/review In review; remove label to forward service/compute-instances
Projects
None yet
Development

No branches or pull requests

1 participant