terracognita
terracognita copied to clipboard
Google: Check label filters
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)
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