我有一个参数化的S3路径(每个环境不同),看起来像下面的示例:
Environment:
- Name: 'Environment'
Value: !Ref Environment
- Name: SERVICE_LOGIN_KEYSTORE
Value: !Sub s3://${Environment}-productsuite-cert/productsuite-pipelinename-${Environment}.jks
问题是实际路径的第一个${Environment}
小写,而第二个大写,例如:
s3://qa-productsuite-cert/productsuite-pipelinename-QA.jks
s3://pr-productsuite-cert/productsuite-pipelinename-PR.jks
所以我需要这样的东西:
!Sub s3://${Environment:Uppercase}-productsuite-cert/productsuite-pipelinename-${Environment:Lowecase}.jks
答案 0 :(得分:1)