# Terraform tuple - Command Line

**URL:** <https://discuss.hashicorp.com/t/terraform-tuple-command-line/69549>\
**Category:** Terraform\
**Created:** [August 26, 2024, 5:37pm UTC](https://discuss.hashicorp.com/t/terraform-tuple-command-line/69549 "2024-08-26T17:37:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aniketpant1](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/aniketpant1/32/41795_2.png) [@aniketpant1](https://discuss.hashicorp.com/u/aniketpant1)\
**Post date:** [August 26, 2024, 5:37pm UTC](https://discuss.hashicorp.com/t/terraform-tuple-command-line/69549/1 "2024-08-26T17:37:09Z")

</div>

Hi Team,  
I am getting the error `Variables not allowed`

```auto
cat tuple_example.tf
variable "tuple_type" {
 description = "This is a variable of type tuple"
 type = tuple([string, number, bool])
 default = ["item1", 42, true]
}

```

```auto
cat tuple_output.tf
output "tuple_output" {
 value = var.tuple_type
}

```

When i am running

```auto
 terraform plan -var "tuple_type=(["Aniket",28,true])"
╷
│ Error: Variables not allowed
│
│ on <value for var.tuple_type> line 1:
│ (source code not available)
│
│ Variables may not be used here.
╵
``

I am starting from scratch so i am struggling .
```

---

<div class="post-metadata">

**Author:** ![jamiekt](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/jamiekt/32/12291_2.png) [@jamiekt](https://discuss.hashicorp.com/u/jamiekt)\
**Post date:** [August 27, 2024, 2:09pm UTC](https://discuss.hashicorp.com/t/terraform-tuple-command-line/69549/2 "2024-08-27T14:09:50Z")

</div>

> [@aniketpant1](#):
>
> `terraform plan -var "tuple_type=(["Aniket",28,true])"`

You need to escape the quotes. Change your command to

`terraform plan -var "tuple_type=([\"Aniket\",28,true])"`

 ![image](https://global.discourse-cdn.com/hashicorp/original/3X/a/9/a986dbe84fd0dd7a4dd9466dbbbfdf608951086a.png)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/hashicorp/original/1X/79bf76adfd92a75631996933098f9ce29d37abf3.svg) [@system](https://discuss.hashicorp.com/u/system)\
**Post date:** [February 23, 2025, 2:10pm UTC](https://discuss.hashicorp.com/t/terraform-tuple-command-line/69549/3 "2025-02-23T14:10:29Z")

</div>

Closed on February 23, 2025, 2:10pm UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
