Skip to content
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

Feature request: use CDK construct IDs as resource names #231

Open
tstibbs opened this issue Mar 27, 2023 · 0 comments
Open

Feature request: use CDK construct IDs as resource names #231

tstibbs opened this issue Mar 27, 2023 · 0 comments

Comments

@tstibbs
Copy link

tstibbs commented Mar 27, 2023

I like the diagrams that this tool generates, however the diagram is cluttered by the rather long logical resource IDs generated by CDK.

E.g. in my CDK code, my resource is called search-handler, but in the cloudformation the logical ID becomes searchhandler7b2049725, which is then shown on the generated diagram, which hinders readability. If cfn-diagram could recognise that it's running against a CDK stack and pull the CDK resource names instead of the generated cloudformation names, that would make the output useable for me.

It's not immediately obvious to me how this could be done though. It looks like cdk.out/manifest.json contains some kind of mapping between CDK construct IDs and cfn logical resource IDs, but I don't know if that file covers all resources.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant