question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[aws-ecs-patterns] Missing command parameter for task definition

See original GitHub issue

The ApplicationLoadBalancedFargateService is missing a list of commands when creating the container.

Use Case

Some docker container needs to run a command after creating the container. E.g. Airflow needs to run webserver.

Proposed Solution

For Python

load_balanced_fargate_service = ecsp.ApplicationLoadBalancedFargateService(
            self,
            "Service",
            cluster=cluster,
            memory_limit_mib=1024,
            cpu=512,
            image=ecs.ContainerImage.from_registry("apache/airflow"),
            command=["webserver"],
        )

This is a 🚀 Feature Request

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jolo-devcommented, Nov 23, 2020

I created every component individually (class for LoadBalancer, TargetGroups, Ecs + Fargate).

But might be a good case to refactor it.

0reactions
github-actions[bot]commented, Nov 23, 2020

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Task definition parameters - Amazon Elastic Container Service
The Docker networking mode to use for the containers in the task. For Amazon ECS tasks that are hosted on Amazon EC2 Linux...
Read more >
Creating a task definition using the new console
Create your task definitions using the Amazon ECS console. To make the task definition creation process as ... The file contains the familyName...
Read more >
Task definition parameters - Amazon ECS - AWS Documentation
The following advanced container definition parameters provide extended capabilities to the docker run command that's used to launch containers on your Amazon ......
Read more >
Job definition parameters - AWS Batch
When you register a job definition, you can use parameter substitution placeholders in the command field of a job's container properties.
Read more >
Troubleshoot common errors with API calls in Amazon ECS
This error is logged when the specified cluster isn't found. Example: $ aws ecs run-task --task-definition CentOS --cluster example-cluster -- ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found