Skip to content

Commit e3458f5

Browse files
Force new resource when identifier elements change.
1 parent 9d91383 commit e3458f5

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

gitlab/resource_gitlab_group_variable.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ func resourceGitlabGroupVariable() *schema.Resource {
2020
Schema: map[string]*schema.Schema{
2121
"group": {
2222
Type: schema.TypeString,
23+
ForceNew: true,
2324
Required: true,
2425
},
2526
"key": {
2627
Type: schema.TypeString,
28+
ForceNew: true,
2729
Required: true,
2830
ValidateFunc: StringIsGitlabVariableName(),
2931
},

gitlab/resource_gitlab_project_variable.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ func resourceGitlabProjectVariable() *schema.Resource {
2020
Schema: map[string]*schema.Schema{
2121
"project": {
2222
Type: schema.TypeString,
23+
ForceNew: true,
2324
Required: true,
2425
},
2526
"key": {
2627
Type: schema.TypeString,
28+
ForceNew: true,
2729
Required: true,
2830
ValidateFunc: StringIsGitlabVariableName(),
2931
},

0 commit comments

Comments
 (0)