If a module uses local values, those values can be exposed using the "terraform output" directive. By using the terraform output directive, you can define an output for a module that provides information about the local values used within the module. This information can then be consumed by other parts of the Terraform configuration, allowing you to make use of the values that have been set within the module. To expose a local value, you would define an output block in the module, specifying the name and value of the output, and then reference the output in other parts of your Terraform configuration using the "terraform output" data source.
1. Output values make information about your infrastructure available on the command line, and can expose information for other Terraform configurations to use. Output values are similar to return values in programming languages.
2.Basic Syntax:
https://drive.google.com/file/d/1td5DcyZ-7iHL3Xhpwep4deEEfKbC7DkT/view?usp=sharing
3.Using Output Values with Modules(logical concept described in diagram below):
https://drive.google.com/file/d/1tbYWsCSev063ibz9Pv9poqViOY6fAAsG/view?usp=sharing
Basically,the question is narrowed down to exposing locals from the root module(can be any resource attribute in general).
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Bere
Highly Voted 1 year, 3 months agoSilentMilli
Most Recent 1 month, 4 weeks agogargaditya
1 month, 4 weeks agoHarshPatel198
1 year, 2 months agoJayanth
1 year, 3 months agoBusi57
1 year, 4 months agoVSMu
1 year, 4 months agoSammySunny
1 year, 5 months agoHMthyl
1 year, 4 months agoIK912
1 year, 5 months agokarendavtyan
1 year, 6 months agoTanacet
1 year, 9 months agossanjayt
1 year, 10 months agojj22222
2 years agohectordj
2 years, 1 month agopoojithakadiyala
2 years, 1 month agodaaww
2 years, 2 months ago