問題文
A network module creates a subnet, and a separate configuration in another working directory needs the subnet identifier. What does the module's author need to do so that the value can be consumed?
選択肢
- Declare it as an output, and make sure the root module of the configuration that calls the module also exposes it as an output.
- Declare it as an output in the module, which is enough because module outputs are recorded in the state and can be read from there.
- Mark the output as non-sensitive, since sensitive outputs are the only ones that cannot be read across configurations.
- Publish it to a shared configuration store such as a key-value service, since outputs cannot cross working directory boundaries and the only supported way to share values is an external store.