Skip to content

Commit

Permalink
Merge pull request #12677 from pvanbuijtene/wafv2-rule-group
Browse files Browse the repository at this point in the history
New resource r/aws_wafv2_rule_group
  • Loading branch information
anGie44 authored Jun 8, 2020
2 parents a8ddf4d + 43237d8 commit 26275c3
Show file tree
Hide file tree
Showing 6 changed files with 4,305 additions and 1 deletion.
2 changes: 1 addition & 1 deletion aws/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ func (c *Config) Client() (interface{}, error) {
r.Retryable = aws.Bool(true)
}

if r.Operation.Name == "CreateIPSet" || r.Operation.Name == "CreateRegexPatternSet" {
if r.Operation.Name == "CreateIPSet" || r.Operation.Name == "CreateRegexPatternSet" || r.Operation.Name == "CreateRuleGroup" {
// WAFv2 supports tag on create which can result in the below error codes according to the documentation
if isAWSErr(r.Error, wafv2.ErrCodeWAFTagOperationException, "Retry your request") {
r.Retryable = aws.Bool(true)
Expand Down
1 change: 1 addition & 0 deletions aws/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -889,6 +889,7 @@ func Provider() terraform.ResourceProvider {
"aws_wafregional_web_acl_association": resourceAwsWafRegionalWebAclAssociation(),
"aws_wafv2_ip_set": resourceAwsWafv2IPSet(),
"aws_wafv2_regex_pattern_set": resourceAwsWafv2RegexPatternSet(),
"aws_wafv2_rule_group": resourceAwsWafv2RuleGroup(),
"aws_worklink_fleet": resourceAwsWorkLinkFleet(),
"aws_worklink_website_certificate_authority_association": resourceAwsWorkLinkWebsiteCertificateAuthorityAssociation(),
"aws_workspaces_directory": resourceAwsWorkspacesDirectory(),
Expand Down
Loading

0 comments on commit 26275c3

Please sign in to comment.