-
Notifications
You must be signed in to change notification settings - Fork 459
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
All Module Outputs Typed as String #287
Comments
In the meantime, are there workarounds that are expected to work? @jsteinich wrote in #606:
In my case, I have an output that should be recognized as an object w/ a couple of attributes. I'm struggling to have it recognized as such. Using |
You could manually construct hcl and use escape hatches, but probably easier to try to use |
I also encounter this bug using Python with the CDKTF and the VPC module. Is there any known workaround for Python? I tried Update Found it! |
This sort of thing needs to be documented. |
Token.as_list is working with a list from _output, but when I tried to get a target group arn from target_groups_output, the original output is string, but after I tried Token.as_list, Token.as_string_map(dict), I still cannot get the arn. |
Community Note
cdktf & Language Versions
Affected Resource(s)
Debug Output
E.g the AWS VPC Module:
Expected Behavior
This should be treated as list of strings
Actual Behavior
It's treated as simple string
Steps to Reproduce
Import VPC module and reference the output
The text was updated successfully, but these errors were encountered: