Skip to content

Commit

Permalink
fix(aws_ses_reciept_rule): include period in name validation regex
Browse files Browse the repository at this point in the history
  • Loading branch information
joshsleeper committed Feb 15, 2021
1 parent cd777a4 commit f35f89b
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 f35f89b

Please sign in to comment.