File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
modules/runner-binaries-syncer Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -49,10 +49,10 @@ variable "s3_logging_bucket_prefix" {
49
49
type = string
50
50
default = null
51
51
52
- # Make sure the bucket name only contains legal characters
52
+ # Make sure the bucket prefix only contains legal characters
53
53
validation {
54
- error_message = " Only lowercase alphanumeric characters and hyphens allowed in the bucket name ."
55
- condition = var. s3_logging_bucket_prefix == null || can (regex (" ^[a-z0- 9-]*$" , var. s3_logging_bucket_prefix ))
54
+ error_message = " Only alphanumeric characters, hyphens followed by single slashes allowed in the bucket prefix ."
55
+ condition = var. s3_logging_bucket_prefix == null || can (regex (" ^(( [a-zA-Z0- 9-])+( \\ /?)) *$" , var. s3_logging_bucket_prefix ))
56
56
}
57
57
}
58
58
You can’t perform that action at this time.
0 commit comments