我正在尝试访问另一个新模块中的一个模块变量,以获取在该模块中创建的aws实例ID,并在模块中使用它们.云监视警报会在这些实例ID中创建警报.结构如下所示
**Amodule #here this is used for creating kafka aws instances*
main.tf
kafkainstancevariables.tf
Run Code Online (Sandbox Code Playgroud)
Bmodule #here这用于在那些kafka实例中创建警报
main.tf
cloudwatchalertsforkafkainstancesVariables.tf
Run Code Online (Sandbox Code Playgroud)
外部模块terraform mainfile,所有模块都称为main.tf variables.tf***
如何访问Bmodule中Amodule中创建的变量?
谢谢!