1 Respuesta
- Más nuevo
- Más votos
- Más comentarios
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'
respondido hace 2 años
Contenido relevante
- OFICIAL DE AWSActualizada hace 3 años
- OFICIAL DE AWSActualizada hace 3 años
- OFICIAL DE AWSActualizada hace 2 años
- OFICIAL DE AWSActualizada hace 3 años
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.