Skip to content

Commit

Permalink
Update index.md with correct version syntax (#1132)
Browse files Browse the repository at this point in the history
  • Loading branch information
CyrusJavan authored Oct 29, 2021
1 parent 8561433 commit 1b44039
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,22 @@ Use the navigation to the left to read about the available resources.
## Example Usage

```hcl
# Configure Aviatrix provider source and version
terraform {
required_providers {
aviatrix = {
source = "AviatrixSystems/aviatrix"
version = "2.20.1"
}
}
}
# Configure Aviatrix provider
provider "aviatrix" {
controller_ip = "1.2.3.4"
username = "admin"
password = "password"
skip_version_validation = false
version = "2.19.0"
}
# Create an access account
Expand Down Expand Up @@ -81,4 +90,4 @@ The following arguments are supported:

### Optional
* `skip_version_validation` - (Optional) Valid values: true, false. Default: false. If set to true, it skips checking whether current Terraform provider supports current Controller version.
* `version` - (Optional) Specify Aviatrix provider release version number. If not specified, Terraform will automatically pull and source the latest release.
* `version` - (Optional) Specify Aviatrix provider release version number. If not specified, Terraform will automatically pull and source the latest release. For Terraform version 0.13+, do not use this attribute. Instead, set provider version using a `required_providers` block like in the example above.

0 comments on commit 1b44039

Please sign in to comment.