This shows you the differences between two versions of the page.
| programming:usingvariablesinconfiguration [2024/07/01 10:14] – created kamaradski | programming:usingvariablesinconfiguration [2024/07/01 10:31] (current) – removed kamaradski | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Using Variables in Configuration ====== | ||
| - | Variables can be accessed using the var keyword. | ||
| - | |||
| - | <code hcl> | ||
| - | resource " | ||
| - | ami = " | ||
| - | instance_type = var.instance_type | ||
| - | |||
| - | tags = var.instance_tags | ||
| - | } | ||
| - | </ | ||