Skip to content

Commit

Permalink
Merge pull request #17627 from joshsleeper/f-aws_ses_reciept_rule-nam…
Browse files Browse the repository at this point in the history
…e_validation

fix(aws_ses_reciept_rule): include period in name validation regex
  • Loading branch information
anGie44 authored Feb 16, 2021
2 parents cd777a4 + f35f89b commit c63960b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/17627.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
resource/aws_ses_receipt_rule: Fix name validation regex to include `.` (period)
```
2 changes: 1 addition & 1 deletion aws/resource_aws_ses_receipt_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func resourceAwsSesReceiptRule() *schema.Resource {
ForceNew: true,
ValidateFunc: validation.All(
validation.StringLenBetween(1, 64),
validation.StringMatch(regexp.MustCompile(`^[0-9a-zA-Z_-]+$`), "must contain only alphanumeric, underscore, and hyphen characters"),
validation.StringMatch(regexp.MustCompile(`^[0-9a-zA-Z._-]+$`), "must contain only alphanumeric, period, underscore, and hyphen characters"),
validation.StringMatch(regexp.MustCompile(`^[0-9a-zA-Z]`), "must begin with a alphanumeric character"),
validation.StringMatch(regexp.MustCompile(`[0-9a-zA-Z]$`), "must end with a alphanumeric character"),
),
Expand Down

0 comments on commit c63960b

Please sign in to comment.