1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
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'
répondu il y a 2 ans
Contenus pertinents
- demandé il y a un an
- demandé il y a 6 mois
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 3 mois
- AWS OFFICIELA mis à jour il y a 10 mois
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.