How to use !FindInMap in !Sub | userdata section
问题 Currently I am converting CFT from JSON to Yaml. Everything works fine until Userdata section.I am having hard time to use any of functions like !Ref or !FindInMap in userdata section. UserData: Fn::Base64: !Sub | #!/bin/bash -v /command {Fn::FindInMap: [ "url", Ref: AWS::Region, Ref: EnvironmentType ] } It would be very helpful, If anyone can share any snippet of code. 回答1: I've been having fun and games with this as well. Although the documentation says that Fn::FindInMap is supported in Fn