You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Description
I might have missed it, but I can't find any clear docs around how to reference module outputs, to the point where I almost submitted a bug as I was simply referencing parameters set in a module and I could see it was synthing a string rather than a reference (and so causing me dependency issues - or lack of).
However, now my understanding is that you would do something like (in python):
modulevarname.paramname_output
i.e. add _output to the parameter name that the module is outputting? a) is that correct? (as I think it is from testing and digging around the generated module python code) and b) could some guidance on this point be added to the [using-providers-and-modules.md](https://github.com/hashicorp/terraform-cdk/blob/main/docs/working-with-cdk-for-terraform/using-providers-and-modules.md)
If I am completely doing it wrong, it would be also good to know :-)
Thanks!
The text was updated successfully, but these errors were encountered:
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
Description
I might have missed it, but I can't find any clear docs around how to reference module outputs, to the point where I almost submitted a bug as I was simply referencing parameters set in a module and I could see it was synthing a string rather than a reference (and so causing me dependency issues - or lack of).
However, now my understanding is that you would do something like (in python):
modulevarname.paramname_output
i.e. add
_output
to the parameter name that the module is outputting? a) is that correct? (as I think it is from testing and digging around the generated module python code) and b) could some guidance on this point be added to the[using-providers-and-modules.md](https://github.com/hashicorp/terraform-cdk/blob/main/docs/working-with-cdk-for-terraform/using-providers-and-modules.md)
If I am completely doing it wrong, it would be also good to know :-)
Thanks!
The text was updated successfully, but these errors were encountered: