From 7d093cbede362a76cd0a1695fbffed20499c1281 Mon Sep 17 00:00:00 2001 From: Repon Kumar Roy Date: Tue, 15 Dec 2020 02:09:30 +0800 Subject: [PATCH] website: add example of multiple var cli This PR updates the documentation of input variable of terraform. It's mentioned that multiple `-var` is possible, but no example is given. This PR adds an example of multiple `-var` option --- website/docs/configuration/variables.html.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/configuration/variables.html.md b/website/docs/configuration/variables.html.md index 26ee510b0..427fc8551 100644 --- a/website/docs/configuration/variables.html.md +++ b/website/docs/configuration/variables.html.md @@ -343,7 +343,7 @@ when running the `terraform plan` and `terraform apply` commands: ``` terraform apply -var="image_id=ami-abc123" -terraform apply -var='image_id_list=["ami-abc123","ami-def456"]' +terraform apply -var='image_id_list=["ami-abc123","ami-def456"]' -var="instance_type=t2.micro" terraform apply -var='image_id_map={"us-east-1":"ami-abc123","us-east-2":"ami-def456"}' ```