cloudposse / terraform-aws-ecs-container-definition

Terraform module to generate well-formed JSON documents (container definitions) that are passed to the aws_ecs_task_definition Terraform resource
https://cloudposse.com/accelerate
Apache License 2.0
339 stars 244 forks source link

Provide command as a string #145

Open nitrocode opened 3 years ago

nitrocode commented 3 years ago

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