I have a parameterized S3 path (different per environment) that looks something like this example:
Environment:
- Name: 'Environment'
Value: !Ref Environment
- Name: SERVICE_LOGIN_KEYSTORE
Value: !Sub s3://${Environment}-productsuite-cert/productsuite-pipelinename-${Environment}.jks
The issue is that the actual path has the first ${Environment}
in lowercase while the second in uppercase, e.g:
s3://qa-productsuite-cert/productsuite-pipelinename-QA.jks
s3://pr-productsuite-cert/productsuite-pipelinename-PR.jks
So what I need is something like this:
!Sub s3://${Environment:Uppercase}-productsuite-cert/productsuite-pipelinename-${Environment:Lowecase}.jks