Skip to content

Commit

Permalink
fix forced resource recreation due to rule block force-new arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
anGie44 committed Aug 13, 2020
1 parent 9850bc6 commit 981800c
Show file tree
Hide file tree
Showing 3 changed files with 364 additions and 25 deletions.
3 changes: 1 addition & 2 deletions aws/resource_aws_wafv2_web_acl.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ func resourceAwsWafv2WebACL() *schema.Resource {
"name": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
ValidateFunc: validation.StringLenBetween(1, 128),
},
"override_action": {
Expand Down Expand Up @@ -253,7 +252,7 @@ func resourceAwsWafv2WebACLUpdate(d *schema.ResourceData, meta interface{}) erro
Scope: aws.String(d.Get("scope").(string)),
LockToken: aws.String(d.Get("lock_token").(string)),
DefaultAction: expandWafv2DefaultAction(d.Get("default_action").([]interface{})),
Rules: expandWafv2Rules(d.Get("rule").(*schema.Set).List()),
Rules: expandWafv2WebACLRules(d.Get("rule").(*schema.Set).List()),
VisibilityConfig: expandWafv2VisibilityConfig(d.Get("visibility_config").([]interface{})),
}

Expand Down
Loading

0 comments on commit 981800c

Please sign in to comment.