Skip to content

Commit

Permalink
Feat: update TF provider with latest support (#675)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomerHeber committed Jul 7, 2023
1 parent 8ec4d5d commit 24bd207
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions env0/resource_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,9 @@ func getTemplateSchema(prefix string) map[string]*schema.Schema {
},
"terraform_version": {
Type: schema.TypeString,
Description: "the Terraform version to use (example: 0.15.1). Setting to `RESOLVE_FROM_TERRAFORM_CODE` defaults to the version of `terraform.required_version` during run-time (resolve from terraform code).",
Description: "the Terraform version to use (example: 0.15.1). Setting to `RESOLVE_FROM_TERRAFORM_CODE` defaults to the version of `terraform.required_version` during run-time (resolve from terraform code). Setting to `latest`, the version used will be the most recent one available for Terraform.",
Optional: true,
ValidateDiagFunc: NewRegexValidator(`^(?:[0-9]\.[0-9]{1,2}\.[0-9]{1,2})|RESOLVE_FROM_TERRAFORM_CODE$`),
ValidateDiagFunc: NewRegexValidator(`^(?:[0-9]\.[0-9]{1,2}\.[0-9]{1,2})|RESOLVE_FROM_TERRAFORM_CODE|latest$`),
Default: "0.15.1",
},
"terragrunt_version": {
Expand Down
2 changes: 1 addition & 1 deletion env0/resource_template_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ func TestUnitTemplateResource(t *testing.T) {
},
Type: "terraform",
TokenId: "1",
TerraformVersion: "0.12.24",
TerraformVersion: "latest",
IsAzureDevOps: true,
}
azureDevOpsUpdatedTemplate := client.Template{
Expand Down

0 comments on commit 24bd207

Please sign in to comment.