terraform-provider-splunk icon indicating copy to clipboard operation
terraform-provider-splunk copied to clipboard

case sensitivity issue with role creation

Open dmoe86 opened this issue 3 years ago • 1 comments

If a role gets created with uppercase characters in the name property when using 'splunk_authorization_roles' the server side in splunk cloud changes all characters to lower case, the terraform state file saves the resources with the case as it is in the .tf file, the next time you try to do an apply it can not find the role that was created in the prior run and fails.

dmoe86 avatar Sep 08 '21 15:09 dmoe86

Per the Splunk documentation, roles can only be created in lowercase letters.

image

Wonder if this is something that should be documented better in the provider? Not sure I'm a fan of the provider just 'fixing it' for me on the fly as it would mis-represent what's been provisioned. I guess another option would be to have the provider fail the request if it contains invalid characters...

JosephHobbs avatar Nov 24 '21 19:11 JosephHobbs