Rename Outputs Export Name in CloudFormation


I’m deploying multiple lambdas in AWS which have the same name. We add a custom variable to distinguish what ‘client’ they are for. However the issue we are facing is duplicate outputs that have the same export name.

What I’ve done is pass a custom stackName to prefix things which results in the correct Physical ID

which results in


The app name is this isn’t transferred to the export name which is currently sls-product-dev-EnterpriseLogAccessIamRole and i’d actually hope this was sls-clientA-product-dev-EnterpriseLogAccessIamRole.

Does anyone know a way around this?