Github Actions Download _verified_ Task Definition May 2026

In a standard GitHub Actions workflow, this process typically follows the "Build and Push to ECR" stage and precedes the "Render Task Definition" stage. Action/Command aws-actions/configure-aws-credentials Grants the runner permission to access your AWS resources. Download Task Definition

aws ecs describe-task-definition \ --task-definition \ --query taskDefinition > task-definition.json Use code with caution. Implementing the Step in GitHub Actions github actions download task definition

To download an existing task definition, use the aws ecs describe-task-definition command. Crucially, you must use the --query taskDefinition parameter to filter the output into a format compatible with subsequent deployment actions. In a standard GitHub Actions workflow, this process