It would be nice to make this configurable in two dimensions:
Allow specifying an explicit list of pulumi provider type tokens to include (I just want all of my Kinesis queues)
Allow specifying a list of pulumi provider type tokens to exclude (no IAM roles or policies please)
We should support this in all of the import programs for all clouds, and we should be able to support both pulumi configuration to be used on the typical ReadResource path, as well as an environment variable or some sort of command line flag to support the go run main.go --import use case where we are not running a pulumi program and are just generating the import file.
Due to bugs in the underlying cloud provider, we maintain a map of resources to exclude that we check before importing any given resource:
https://github.com/pulumi/pulumi-cloud-import/blob/1b91d7b5fec3dcca3b9dca0549566f5a12631b7e/pulumi-cloud-import-aws/main.go#L113-L126
It would be nice to make this configurable in two dimensions:
We should support this in all of the import programs for all clouds, and we should be able to support both pulumi configuration to be used on the typical
ReadResource
path, as well as an environment variable or some sort of command line flag to support thego run main.go --import
use case where we are not running a pulumi program and are just generating the import file.