terracognita icon indicating copy to clipboard operation
terracognita copied to clipboard

When prefetching the IDs also set the Names of the resources

Open xescugc opened this issue 2 years ago • 0 comments

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

Implementation

Open issues (if applicable)

xescugc avatar Apr 11 '22 13:04 xescugc