-
Notifications
You must be signed in to change notification settings - Fork 450
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
csharp: Amazon.JSII.Runtime.JsiiException Expected a boolean, got "a" (string) #960
Comments
This is something that is being actively worked on. It's part of a large internal topic (#525) so it's been taking awhile, but we hope to have a resolution in the next release. |
Using an escape hatch it should be possible to workaround in the meantime. |
Thank you @rgl for linking such a great example! I was able verify that this problem does not exist anymore in the current version. I created an abbreviated example here: https://github.com/hashicorp/terraform-cdk/compare/verify-boolean-references-work |
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
cdktf 0.5.0
csharp 3.1/5.0
Affected Resource(s)
vsphere_virtual_machine
Expected Behavior
It should have used a bool.
Actual Behavior
It converted the bool to a string.
Steps to Reproduce
Using the code from https://github.com/rgl/dotnet-terraform-cdk-vsphere-ubuntu-example/blob/main/Main.cs#L134-L141 which is something alike;
Execute the stack with
cdktf diff
.This is the error I get:
The text was updated successfully, but these errors were encountered: