diff --git a/CHANGELOG.md b/CHANGELOG.md index ac7b31c29..f63a35b0c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,9 @@ ENHANCEMENTS: FEATURES: * `r/tfe_team`: Add attributes `manage_teams`, `manage_organization_access`, and `access_secret_teams` to `organization_access` on `tfe_team` by @juliannatetreault [#1313](https://github.com/hashicorp/terraform-provider-tfe/pull/1313) +ENHANCEMENTS: +* `r/tfe_project`: Increase the Project name length from 36 to 40 characters @hs26gill [#1351](https://github.com/hashicorp/terraform-provider-tfe/pull/1351) + ## v0.54.0 ENHANCEMENTS: diff --git a/internal/provider/resource_tfe_project.go b/internal/provider/resource_tfe_project.go index 5bc155c8d..a7b1b6abe 100644 --- a/internal/provider/resource_tfe_project.go +++ b/internal/provider/resource_tfe_project.go @@ -40,7 +40,7 @@ func resourceTFEProject() *schema.Resource { Type: schema.TypeString, Required: true, ValidateFunc: validation.All( - validation.StringLenBetween(3, 36), + validation.StringLenBetween(3, 40), validation.StringMatch(regexp.MustCompile(`\A[\w\-][\w\- ]+[\w\-]\z`), "can only include letters, numbers, spaces, -, and _."), ), diff --git a/internal/provider/resource_tfe_project_test.go b/internal/provider/resource_tfe_project_test.go index e77f03ea7..a2070d885 100644 --- a/internal/provider/resource_tfe_project_test.go +++ b/internal/provider/resource_tfe_project_test.go @@ -57,7 +57,7 @@ func TestAccTFEProject_invalidName(t *testing.T) { }, { Config: testAccTFEProject_invalidNameLen(rInt), - ExpectError: regexp.MustCompile(`expected length of name to be in the range \(3 - 36\),`), + ExpectError: regexp.MustCompile(`expected length of name to be in the range \(3 - 40\),`), }, }, })