terracognita icon indicating copy to clipboard operation
terracognita copied to clipboard

Google: Check label filters

Open xescugc opened this issue 2 years ago • 1 comments

Abstract

While working on https://github.com/cycloidio/terracognita/pull/237 I noticed some resources had things similar to labels without having the same name, this is the case of https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/sql_database_instance#user_labels which does not have labels but it has user_labels.

Proposal

We need to check if there are any other Google resources with this similarity and if so adjust the filters to also work with those.

Implementation

Open issues (if applicable)

xescugc avatar Sep 15 '21 22:09 xescugc

I searched on the terraform code and it seems is also by three resources :

  • https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/monitoring_alert_policy#user_labels
  • https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/monitoring_notification_channel#user_labels
  • https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/sql_database_instance#user_labels

marcoldp avatar Apr 21 '22 18:04 marcoldp