1 Antwort
- Neueste
- Die meisten Stimmen
- Die meisten Kommentare
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'
beantwortet vor 2 Jahren
Relevanter Inhalt
- AWS OFFICIALAktualisiert vor 3 Jahren
- AWS OFFICIALAktualisiert vor 3 Jahren
- AWS OFFICIALAktualisiert vor einem Jahr
- AWS OFFICIALAktualisiert vor 2 Jahren
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.