Expansion of variables / functions in Cloud Formation YAML
Guest |
Tuesday, April 4, 2023 at 6:55 AM |
I'm trying to learn how to write Cloud Formation templates (in YAML) by hand.
I'm finding the iteration process quite slow and, therefore, learning by 'trial and error' also slow.
For example, I'm trying to figure out if this:
Fn::Join:
- "/"
- - "s3:/"
- !Ref MyBucket
- "deviceFeed"
could be replaced with this:
!Sub "s3://${MyBucket}/deviceFeed"
(I have no idea of the answer to that question btw... and the answer is not what I'm asking here).
Is there someway that I can quickly run my YAML through a process to expand out functions like these and see the final rendered strings etc? Perhaps something in the CLI or console? At the moment I'm just deploying the stacks and trawling through the errors, then guessing the mistake. My pace is glacial on a particularly cold day. I need a way to move faster.
Any tips greatly appreciated.