Skip to content

Commit

Permalink
Merge pull request #16815 from kromol/b-pattern-for-cw-event-bus-name
Browse files Browse the repository at this point in the history
  • Loading branch information
gdavison committed Mar 25, 2021
2 parents c103c41 + b9e8c07 commit 1d0d370
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .changelog/16815.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
```release-note:bug
resource/aws_cloudwatch_event_permission: Fix error in Event Bridge/CloudWatch Events bus name validation
```

```release-note:bug
resource/aws_cloudwatch_event_rule: Fix error in Event Bridge/CloudWatch Events bus name validation
```

```release-note:bug
resource/aws_cloudwatch_event_target: Fix error in Event Bridge/CloudWatch Events bus name validation
```
2 changes: 1 addition & 1 deletion aws/validators.go
Original file line number Diff line number Diff line change
Expand Up @@ -2401,7 +2401,7 @@ var validateCloudWatchEventCustomEventBusName = validation.All(

var validateCloudWatchEventBusName = validation.All(
validation.StringLenBetween(1, 256),
validation.StringMatch(regexp.MustCompile(`^[a-zA-Z0-9._\-]+$`), ""),
validation.StringMatch(regexp.MustCompile(`^[a-zA-Z0-9._\-/]+$`), ""),
)

var validateCloudWatchEventArchiveName = validation.All(
Expand Down

0 comments on commit 1d0d370

Please sign in to comment.