From 5acdb8913b4aa6f1c42056a31aa3baa3a58b57c9 Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Sat, 6 Oct 2018 14:41:56 +0200 Subject: [PATCH] docs: update terraform description --- website/docs/configuration-options.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/website/docs/configuration-options.md b/website/docs/configuration-options.md index 4def138035..734f368685 100644 --- a/website/docs/configuration-options.md +++ b/website/docs/configuration-options.md @@ -808,7 +808,25 @@ Language support is limited to those listed below: ## terraform -Currently terraform support is limited to github sources with semver refs, e.g. like `github.com/hashicorp/example?ref=v1.0.0`. +Currently Terraform support is limited to Terraform registry sources and github sources that include semver refs, e.g. like `github.com/hashicorp/example?ref=v1.0.0`. + +Fixed versions like the following will receive a PR whenever there is a newer version available: + +``` +module "consul" { + source = "hashicorp/consul/aws" + version = "0.0.5" + servers = 3 +} +``` + +The following _range_ constraints are also supported: + +- `>= 1.2.0`: version 1.2.0 or newer +- `<= 1.2.0`: version 1.2.0 or older +- `~> 1.2.0`: any non-beta version >= 1.2.0 and < 1.3.0, e.g. 1.2.X +- `~> 1.2`: any non-beta version >= 1.2.0 and < 2.0.0, e.g. 1.X.Y +- `>= 1.0.0`, <= 2.0.0`: any version between 1.0.0 and 2.0.0 inclusive ## timezone -- GitLab