cdktf / cdktf-tf-module-stack

A drop-in replacement for cdktf.TerraformStack that lets you define Terraform modules as constructs
Mozilla Public License 2.0
19 stars 2 forks source link

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

Open SPSCS-Simon opened 9 months ago

SPSCS-Simon commented 9 months ago

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

Community Note