Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please support it can designate TASK_DEFINITION_ARN #108

Open
ww24 opened this issue May 18, 2017 · 1 comment
Open

Please support it can designate TASK_DEFINITION_ARN #108

ww24 opened this issue May 18, 2017 · 1 comment

Comments

@ww24
Copy link

ww24 commented May 18, 2017

I want to designate TASK_DEFINITION_ARN when I use latest task definition and update ecs service.
Because getCurrentTaskDefinition function does not get latest task definition.

Ex.

ecs-deploy -c $cluster_name -n $service_name --task-definition-arn $task_definition_arn -i $image

How to get last task definition:

LAST_TASK_DEFINITION_ARN=$(aws ecs list-task-definitions --status ACTIVE --family-prefix "${FAMILY_PREFIX}" --sort DESC | jq -r ".taskDefinitionArns[0]")
@abelboldu
Copy link

+1
I would be nice to have a parameter to use either the last task definition or a provided json task file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants