How to run a service on AWS ECS with container overrides?

Viewed 2289

On AWS ECS you can run a task, or a service.

If you run a task with run_task(**kwargs), you have the option to override some task options, for example the container environment variables, this way you can configure the thing inside the container for example. That's great.

Now, I can't find a way how to do the same with create_service(**kwargs). You can only specify a task, so the created container runs with configuration as specified in the task definition. No way to configure it.

Is there a way how to modify task in a service, or this is not possible with the AWS ECS service?

1 Answers
Related