-
Notifications
You must be signed in to change notification settings - Fork 456
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
Token System #525
Comments
One question to answer when tackling this is whether to just fix a few current issues or to prepare for supporting functions / expressions including #220. I certainly see value in taking a simple approach to improve the immediate experience as I anticipate full support to be a much larger project. |
I've been working on a proposal for how to tackle this. It's not complete and I want to make some pocs, but I want to start writing it out to better kick off discussions. Current problems
Other desired expansions
Solution preface
Proposed solution
|
That's a great list, thanks for putting this together.
I think even before starting with POCs, it would probably quite helpful to have some pseudo code which maps out the various aspects of the list from a user point of view. |
I've started working on some examples / proving my proposed solution here: https://github.com/jsteinich/cdktf-ecs-fargate-tokens |
|
When working on adding the list attribute type, I ran into some issues with the returned type: (publicRouteTable.propagatingVgws as TerraformStringListAttribute).get(0) since the returned type is Some options:
I've ran into this type of situation many times now. I would really like to go with option 2 under the assumption that it is uncommon to set properties after the constructor. |
I think the important parts from a user point of view: It should be idiomatic to use and where possible native types should be usable. Whatever we build, should be composable, e.g. when I deal with a referenced list, it should be compatible with collection functions. Plus, we do need to track the origin of references to enable automating cross stack references and building up dependencies between stacks. |
User here, just wanted to comment that I ended up on this thread for the following reason: Exploring terraform-cdk in typescript -> checking out kubernetes provider -> wondering if the interface ServiceSpec.type would ever support a string-literal union type. Also wondering if terraform-cdk will take advantage of typescript tuple-types in the places that it would make sense. |
I'm not sure about string-literal union type, but possibly something along those lines. See #707
Nothing planned here. The upstream jsii library heavily restricts which types are available since they need to map into all the other supported languages. |
I'm closing this issue now, we covered everything |
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. |
We want to address issues around the Token system and make the experience better.
Note: Still have to fill out the details here about what the actual problem is and how we're going to tackle this.
Issues Resolved by this Feature
The text was updated successfully, but these errors were encountered: