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

CLI: Native binaries #31497

Open
2 tasks
floverfelt opened this issue Sep 19, 2024 · 1 comment
Open
2 tasks

CLI: Native binaries #31497

floverfelt opened this issue Sep 19, 2024 · 1 comment
Labels
effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p2 package/tools Related to AWS CDK Tools or CLI

Comments

@floverfelt
Copy link

Describe the feature

Have the aws-cdk-cli be compiled to native binaries or native packages.

Use Case

Similar to some of the use cases described here: #15851

We use the CDK cli quite a bit and use it to dynamically provision stacks on a variety of build machines/OS's in rigidly defined environments which often don't have access to Docker/containers. Having the cdk cli work as a node and npm package is rather cumbersome as you have to install node, npm, and then run an install script. Since it's recommended to install globally, this also makes upgrading/managing multiple versions tricky. We don't use JS/TS for our stack definitions, so we'll often have to install or package node and npm for just this tool.

It would be nice to have the cdk-cli compiled or packaged in a "native" way so that we could simply distribute the binaries instead of having to manage the installs ourselves. These could come prepackaged with the recommended node/npm versions for that release of the cdk-cli.

Proposed Solution

Multiple tools exist to do native packaging of node applications: https://github.com/vercel/pkg https://github.com/nexe/nexe https://docs.deno.com/runtime/reference/cli/compiler/ https://nodejs.org/api/single-executable-applications.html

I'm not a Node/JS dev, so I'm not sure how much work it would be to package the aws-cdk-cli in this way.

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.154.1

Environment details (OS name and version, etc.)

Windows, Linux, Mac

@floverfelt floverfelt added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Sep 19, 2024
@github-actions github-actions bot added the package/tools Related to AWS CDK Tools or CLI label Sep 19, 2024
@pahud
Copy link
Contributor

pahud commented Sep 19, 2024

Thank you for your feedback and use case sharing. Please help us prioritize with 👍. Thanks!

@pahud pahud added p2 effort/medium Medium work item – several days of effort and removed needs-triage This issue or PR still needs to be triaged. labels Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p2 package/tools Related to AWS CDK Tools or CLI
Projects
None yet
Development

No branches or pull requests

2 participants