hashicorp / terraform-provider-google

Terraform Provider for Google Cloud Platform
https://registry.terraform.io/providers/hashicorp/google/latest/docs
Mozilla Public License 2.0
2.32k stars 1.73k forks source link

google_notebooks_instance should allow for labels on resources automatically created like disks #7234

Open cm-wayfair opened 4 years ago

cm-wayfair commented 4 years ago

Community Note

Description

Labels are important for billing and resource management. google_notebooks_instance should allow for either declaring of resources attached to notebooks or pass-thru of labels from the parent resource (notebook-comput-instance).

New or Affected Resource(s)

Potential Terraform Configuration

labels = {
    can_remove = "true"
  }

References

https://www.terraform.io/docs/providers/google/r/compute_disk.html

danawillow commented 4 years ago

Same response here as #7233 - if it's in the API then we can add it to the provider, but in this case it doesn't look like it is: https://cloud.google.com/ai-platform/notebooks/docs/reference/rest/v1beta1/projects.locations.instances.

gogasca commented 3 years ago
  1. With respect to tags: tags support is part of API now and TF.

https://github.com/GoogleCloudPlatform/magic-modules/blob/master/mmv1/products/notebooks/api.yaml#L375

  1. Next week, Notebooks will add the following labels to resources automatically:
Notebook instance "goog-caip-notebook":""
Notebook volume "goog-caip-notebook-volume":""

Can you let us know if this is what you are looking for?

rragundez commented 4 months ago

I believe this is still not in place and my billing has a big chunk unaccounted for because the labels are not propagated to the boot nor the attached disks. Can we add the functionalty to declare labels to disks?

ggtisc commented 1 month ago

Hi @cm-wayfair!

This is an old issue so idk if the labels argument already existed when this issue was created. Just to be sure are you looking to add labels to the boot_disk_type and/or data_disk_type or is it ok with the current labels argument?