1 Answer
- Newest
- Most votes
- Most comments
0
The snippets you've provided are a bit small and lacking context so I'm making some guesses here.
Your first snippet is part of a mapping called RegionMap, right?
You need the !FindInMap to resolve while CloudFormation is executing. Right now it's just treated as plain text in your UserData. So do something like:
UserData:
Fn::Base64: !Sub
- |
#!/bin/bash
...
curl -O ${UrlSubParam}
...
- UrlSubParam: !FindInMap [RegionMap, !Ref "AWS::Region", URL]
Relevant content
- asked 3 years ago
- asked a year ago
- asked 4 years ago
