terraform/website/source
James Nugent cb6cb8b96a core: Support explicit variable type declaration
This commit adds support for declaring variable types in Terraform
configuration. Historically, the type has been inferred from the default
value, defaulting to string if no default was supplied. This has caused
users to devise workarounds if they wanted to declare a map but provide
values from a .tfvars file (for example).

The new syntax adds the "type" key to variable blocks:

```
variable "i_am_a_string" {
    type = "string"
}

variable "i_am_a_map" {
    type = "map"
}
```

This commit does _not_ extend the type system to include bools, integers
or floats - the only two types available are maps and strings.

Validation is performed if a default value is provided in order to
ensure that the default value type matches the declared type.

In the case that a type is not declared, the old logic is used for
determining the type. This allows backwards compatiblity with previous
Terraform configuration.
2016-01-24 11:40:02 -06:00
..
assets docs: Create new section for remote state backends 2016-01-18 08:08:19 +00:00
docs core: Support explicit variable type declaration 2016-01-24 11:40:02 -06:00
intro command: Change module-depth default to -1 2016-01-20 13:58:02 -06:00
layouts provider/azurerm: `azurerm_storage_account` docs 2016-01-20 19:58:48 -05:00
.gitignore website: initial commit 2014-07-16 17:51:48 -04:00
404.html.erb Update 404 page 2015-09-19 17:42:33 +01:00
community.html.erb Use HTTPS + www. for links 2016-01-14 16:03:26 -05:00
downloads.html.erb Use HTTPS + www. for links 2016-01-14 16:03:26 -05:00
index.html.erb provider/aws: Update docs with t1 instance for accounts with EC2 Classic 2015-12-21 10:00:34 -06:00
robots.txt Add robots.txt 2014-10-21 23:20:26 -04:00
sitemap.xml.builder Add sitemap 2014-10-21 23:20:21 -04:00