terracognita
terracognita copied to clipboard
When prefetching the IDs also set the Names of the resources
Abstract
When on the Provider logic we fetch all the IDs we should also store a value that represents the name of set resource.
Proposal
As an example on https://github.com/cycloidio/terracognita/blob/master/aws/resources.go#L935 which is for aws_db_instance
the id is DBInstanceIdentifier
but we can also store the DBName
alongside so we have a user friendly representation of the ID which most of the times is not readable.
This will be helpful for logging/debugging and for 3rd party users of TC