1 Answer
- Newest
- Most votes
- Most comments
1
I believe you want to try something like below to avoid the error you are seeing. This will treat the result of the If function as the input for the EntryPoint property as opposed to an list of strings within a outer list.
Note that the ‘-‘ preceding the if function has been removed.
ContainerDefinitions:
EntryPoint: !If
- EntryPointProvided
- !Ref EntryPoint
- !Ref 'AWS::NoValue'
answered 2 years ago
Relevant content
- Accepted Answerasked 8 months ago
- asked 4 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
Spot on, perfect answer thanks Shane - clearly I missed that I was wrapping the dereference with that extra
-
. With this fix I am now able to pass arrays via comma-separated strings for bothEntryPoint
andCommand
via template parameters, which is awesome.