[aws-ecs-patterns] Missing command parameter for task definition
See original GitHub issueThe 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:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I created every component individually (class for LoadBalancer, TargetGroups, Ecs + Fargate).
But might be a good case to refactor it.
⚠️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.