79474217

Date: 2025-02-28 00:09:28
Score: 0.5
Natty:
Report link

It does seem that there's no general one-level map, which is quite disappointing. A workaround for the specific situation given in the question is to use a condition. In the Conditions section:

InEU: !Equals [!Ref 'AWS::Region', 'eu-west-1']

To use:

ShortName: !If [InEU, eu, us]
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: davidvandebunte