Tweaks to Registry Docs for 0.11 (#16663)
* Registry 0.11 doc tweaks * Add changes for v0.11
This commit is contained in:
parent
275ab4a74e
commit
2889eded3f
|
@ -25,7 +25,7 @@ module "consul" {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
~> **Note:** Module registry integration was added in Terraform v0.10.6
|
~> **Note:** Module registry integration was added in Terraform v0.10.6, and full versioning support in v0.11.0.
|
||||||
|
|
||||||
You can also publish your own modules on the Terraform Registry. You may
|
You can also publish your own modules on the Terraform Registry. You may
|
||||||
use the [public registry](https://registry.terraform.io) for public modules.
|
use the [public registry](https://registry.terraform.io) for public modules.
|
||||||
|
|
|
@ -39,6 +39,7 @@ have required inputs you must set before being able to use the module.
|
||||||
```hcl
|
```hcl
|
||||||
module "consul" {
|
module "consul" {
|
||||||
source = "hashicorp/consul/aws"
|
source = "hashicorp/consul/aws"
|
||||||
|
version = "0.1.0"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -48,7 +49,10 @@ Each module in the registry is versioned. These versions syntactically must
|
||||||
follow [semantic versioning](http://semver.org/). In addition to pure syntax,
|
follow [semantic versioning](http://semver.org/). In addition to pure syntax,
|
||||||
we encourge all modules to follow the full guidelines of semantic versioning.
|
we encourge all modules to follow the full guidelines of semantic versioning.
|
||||||
|
|
||||||
Terraform currently only downloads the latest version of each module. The
|
Terraform since version 0.11 will resolve any provided
|
||||||
next release of Terraform (0.11) will bring full support for constraining
|
[module version constraints](/docs/modules/usage.html#module-versions) and
|
||||||
module versions. The registry has the required semantic versions since launch
|
using them is highly recommended to avoid pulling in breaking changes.
|
||||||
to prepare for this transition shortly after.
|
|
||||||
|
Terraform from version 10.6 through to 0.11 had partial support for the registry
|
||||||
|
protocol, however will not honour version constraints and always download the
|
||||||
|
latest version.
|
||||||
|
|
Loading…
Reference in New Issue