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

Add secure tags (resource_manager_tags) on compute_instance module #343

Closed
Samir-Cit opened this issue Sep 18, 2023 · 0 comments · Fixed by #344
Closed

Add secure tags (resource_manager_tags) on compute_instance module #343

Samir-Cit opened this issue Sep 18, 2023 · 0 comments · Fixed by #344
Assignees
Labels
enhancement New feature or request

Comments

@Samir-Cit
Copy link
Contributor

Samir-Cit commented Sep 18, 2023

TL;DR

The google_compute_instance_from_template resource supports adding a resource_manager_tags, but it's not exposed as a variable in this module.

Terraform Resources

terraform-google-vm/modules/compute_instance

google_compute_instance_from_template
google_compute_instance

Detailed design

variable "resource_manager_tags" {
  type        = map(string)
  default     = {}
}

resource "google_compute_instance_from_template" "compute_instance" {
  ...
  params {
    resource_manager_tags = var.resource_manager_tags
  }
  ...
}

Additional information

I would like to set security tags to use in a VM to bind it to a Firewall Policy Rule.

@Samir-Cit Samir-Cit added the enhancement New feature or request label Sep 18, 2023
@Samir-Cit Samir-Cit self-assigned this Sep 18, 2023
@Samir-Cit Samir-Cit changed the title Add security tags (resource_manager_tags) on compute_instance module Add secure tags (resource_manager_tags) on compute_instance module Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
1 participant