Call Variable in Terraform with Visual Studio Code on Windows - DevPops-Inc/windows GitHub Wiki
• Press the Windows key, type “git bash” and select “Open.”
•
• Type code < main Terraform file >.tf
and press the Enter key to launch the main Terraform file in Visual Studio Code.
•
• Scroll down and double-click where you want to call the variable.
•
• Type var.< variable name >
to call the variable.
•
• Press the Ctrl and S keys to save changes.
•
• Return to Git Bash, type terraform init
and press the Enter key to initialize Terraform.
•
• Type terraform apply
and press the Enter key to apply the configuration.
•
• Type yes
and press the Enter key to confirm.
•