Skip to content

Commit

Permalink
Update resource_splunk_configs_conf.go to support ':' and '/' charact…
Browse files Browse the repository at this point in the history
…ers in stanza of splunk_configs_conf resource

This is required for creation of inputs using the Splunk Addon for AWS, which creates inputs with a name like: aws_sqs_based_s3://s3-bucket-name. 

Link to Splunk Addon for AWS: https://splunk.github.io/splunk-add-on-for-amazon-web-services/
  • Loading branch information
hisume authored Dec 2, 2024
1 parent e59e9b4 commit 8d5d710
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion splunk/resource_splunk_configs_conf.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func configsConf() *schema.Resource {
Type: schema.TypeString,
Required: true,
ForceNew: true,
ValidateFunc: validation.StringMatch(regexp.MustCompile(`^[a-zA-Z0-9_\-.]+/[a-zA-Z0-9_\-.]+`), "A '/' separated string consisting of {conf_file_name}/{stanza_name} ex. props/custom_stanza"),
ValidateFunc: validation.StringMatch(regexp.MustCompile(`^[a-zA-Z0-9_\-.]+/[a-zA-Z0-9_\-.:/]+`), "A '/' separated string consisting of {conf_file_name}/{stanza_name} ex. props/custom_stanza"),
Description: `A '/' separated string consisting of {conf_file_name}/{stanza_name} ex. props/custom_stanza`,
},
"acl": aclSchema(),
Expand Down

0 comments on commit 8d5d710

Please sign in to comment.