Skip to content

Commit

Permalink
Merge pull request #14616 from terraform-providers/b-wafv2-web-acl-rule
Browse files Browse the repository at this point in the history
resource/wafv2_web_acl: remove force_new property from arguments to prevent resource recreation
  • Loading branch information
anGie44 authored Aug 13, 2020
2 parents e49cad3 + 981800c commit 0410b9f
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 0410b9f

Please sign in to comment.