Skip to content
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

How does one invoke a TFModuleStack within the context of other Stack and pass variables or retrieve outputs #280

Open
1 task
SPSCS-Simon opened this issue Oct 18, 2023 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@SPSCS-Simon
Copy link

SPSCS-Simon commented Oct 18, 2023

Description

Per the documentation on the TFModuleStack its unclear how this is supposed to be used (as its aligns to regular TF modules) in the context of a Stack.

Since this construct allows is to declare variables (via TFModuleVariable declarations) and Outputs (via TFModuleOutput declarations) how is one intended to use them?

The examples indicate that they are included in the main entry point and are passed the "App" instance, but nothing to indicate how one passes the variables and handles outputs.

As aligned to a more conventional Terraform module (in HCL), these would be used as an alternate to regular CK Constructs and used in the context of the Stack.

Am I missing something ?

Links

https://github.com/cdktf/cdktf-tf-module-stack

Help Wanted

  • I'm interested in contributing a fix myself

Community Note

  • 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
@SPSCS-Simon SPSCS-Simon added the documentation Improvements or additions to documentation label Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant