splunk / terraform-provider-splunk

Terraform Provider for Splunk
Mozilla Public License 2.0
105 stars 78 forks source link

case sensitivity issue with role creation #87

Open dmoe86 opened 3 years ago

dmoe86 commented 3 years ago

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.

JosephHobbs commented 2 years ago

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...