-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Boring resource names generated by the converter #147
Comments
I'd argue this is by design. We make the resource logical name match the terraform name. |
Yeah. Feel free to close. |
I don't agree with @t0yv0 that this is only about aesthetics. It's objectively worse for a user if they copy it as-is. When they look at resources outside of Pulumi, or in Pulumi state, they're all named example-123, example-abc, etc. and are indistinguishable by name. Sure, expressive names are not required since there are unique urns, but they make various tasks easier and quicker. |
By aesthetics I just mean it doesn't affect |
But no worse than terraform docs for the same thing, and I'm not sure users doing TF state conversions would expect all their resources to be renamed to have the type name suffixed. |
Yeah this kind of feature if we did it would need to be opt-in for documentation use case only. |
What happened?
@thomas11 points out that rolling out the converter to providers generated diffs such as this one:
Notice that the name selected the resource is now "example" which is more boring than "exampleGit", and several resources are now all named "example". Granted, the original HCL also has lots of resources named "example", but we use to provide this little enhancement and now do not anymore.
There is no impact on validity, only aesthetics.
Example
Output of
pulumi about
N/A
Additional context
N/A
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: