terraform-aws-ecs-container-definition icon indicating copy to clipboard operation
terraform-aws-ecs-container-definition copied to clipboard

Provide command as a string

Open nitrocode opened this issue 4 years ago • 0 comments
trafficstars

Have a question? Please checkout our Slack Community or visit our Slack Archive.

Slack Community

Describe the Feature

It would be nice to provide the command as a string instead of as a list but maintain the original command input for backwards compatibility

Expected Behavior

Use a command_string input that splits the string into a list

Use Case

I want to provide a command without turning it into a list first

Describe Ideal Solution

Create a command_string input that splits the string into a list

Alternatives Considered

We can split it before passing in a command to the container... but that's no fun

  command = split(" ", "bin/rails service -p 3000 -b 0.0.0.0")

Additional Context

None

nitrocode avatar Aug 11 '21 19:08 nitrocode