AWS Unable to use environment names with "-" in Output reference

Hi All,

I recently started using step functions in serverless and ran into a bit of a hiccup with outputting the ARN in my Resource block.

My step function is named callTimeout-{opt:stage} and in the resource outpute I reference it as CallTimeoutDash{opt:stageTransformed} (as per https://serverless.com/plugins/serverless-step-functions/#current-gotcha).

The issue lies with my stage name which also contains a “-”. As a workaround I have a shell script that replaces the “-” with “Dash” and passes it as stageTransformed, but I am wondering if there is a cleaner way to handle the transformation?