-
Notifications
You must be signed in to change notification settings - Fork 457
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
"cdktf synth STACK" does not honour STACK #1906
Comments
Oh good point, we forgot to remove the stack positional after removing the JSON flag. Synth can not be limited to a single stack. |
Ah cool. Thanks. I use my own technique to limit what gets synthed, but I wasn't sure if I needed to, or if that capability was in the engine, but glitched. Cheers. |
What technique are you using? |
Nothing fancy. I have three stacks ( https://gist.github.com/jarpy/affd883ee535e16d2d9398352c97240e I've been trying to figure how to get the "stage" by introspection. It would be cool if I could find this somewhere in memory:
Then, I wouldn't need the environment variable, which is pretty ugly. Now you can see how I ended up raising this issue! :) I wanted to |
Hi @jarpy 👋 |
Hi @ansgarm :)
No way! :D I would never create anything with an API call in As a concrete example, I can inspect the GitHub API for information about repositories, (my company has thousands, and they are not provisioned by Terraform), and then dynamically declare CI pipelines, Vault resources etc. based on the incoming data structures. I'm anticipating traditional HCL users saying, at this point, "that's what Please feel free to close this issue, since it sounds like |
Hi @jarpy :) Thank you for those kind words. I can relate to the simplicity that a touring complete language can offer for use-cases like yours. I was just curious about your approach here. We previously had a quite related idea about facilitating such things by offering an API that enables you to quickly define data sources within your CDKTF code. But this probably would come with a bit of overhead and additional challenges (i.e. how and where to pass auth tokens, etc.). So it might not have been a useful replacement for your case here. The whole topic of making CDKTF more dynamic is something we haven't deplored the depths of yet and your feedback definitely helps as input for these endeavors as well. Thanks! It seems to be closed already ✅ Feel free to comment and/or create new issues, even if they just describe a minor annoyance you might encounter while everything "works as designed" 😄 |
I'm going to lock this issue because it has been closed for 30 days. This helps our maintainers find and focus on the active issues. If you've found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Community Note
cdktf & Language Versions
0.11.2 with Python.
Affected Resource(s)
N/A
Debug Output
https://gist.github.com/jarpy/0bc5173c00814820b667f9e097a7e4ff
Expected Behavior
Actual Behavior
Steps to Reproduce
Important Factoids
The help text for
cdktf synth
reads:stack
does not appear to be honoured (and the--json
flag was removed in v0.10.0).References
None.
The text was updated successfully, but these errors were encountered: