I am creating a terraform module to support a project in AWS. Most AWS resources use dashed-name-format, while SIDs only accept alphanumeric characters, and are usually CamelCaseNamed.
I have a module that accepts a list of bucket names and creates s3 buckets. I'd like to create IAM statements for those that have descriptive SIDs, but I don't want to add it as another variable that developers optionally populate.
How can I convert something like s3-bucket-name to a value like S3BucketNameReadAccess?