Skip to content
This repository was archived by the owner on Dec 10, 2025. It is now read-only.
This repository was archived by the owner on Dec 10, 2025. It is now read-only.

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

@SPSCS-Simon

Description

@SPSCS-Simon

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions