Skip to content
This repository has been archived by the owner on May 25, 2022. It is now read-only.

Commit

Permalink
Remove a validation for env- to enable the usage of TF provider to ol…
Browse files Browse the repository at this point in the history
…d environments. (#177)
  • Loading branch information
linouk23 committed Feb 4, 2022
1 parent a1758cf commit 812ffe0
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ import (
"github.com/hashicorp/go-cty/cty"
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"
"log"
"regexp"
"strings"
)

Expand Down Expand Up @@ -142,11 +140,10 @@ func environmentSchema() *schema.Schema {
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
paramId: {
Type: schema.TypeString,
Required: true,
ForceNew: true,
Description: "The unique identifier for the environment.",
ValidateFunc: validation.StringMatch(regexp.MustCompile("^env-"), "the environment ID must be of the form 'env-'"),
Type: schema.TypeString,
Required: true,
ForceNew: true,
Description: "The unique identifier for the environment.",
},
},
},
Expand Down

0 comments on commit 812ffe0

Please sign in to comment.