2 réponses
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
Hi, How do Launch your ECS Task ?
Often in my CICD pipeline, I'm using a generic ECS Task Definition as template, and I use sed
to replace all variables inside it to create a new one.
For instance:
export CI_AWS_ECS_TASK_DEFINITION_FILE="taskdef.json"
export log-group-name="/ecs/myproject/app"
cp ./files/$CI_AWS_ECS_TASK_DEFINITION_FILE ./artifacts/$CI_AWS_ECS_TASK_DEFINITION_FILE
cd artifacts
sed -i "s|<log-group-name>|$log-group-name|g" $CI_AWS_ECS_TASK_DEFINITION_FILE
aws ecs register-task-definition --cli-input-json file://artifacts/$CI_AWS_ECS_TASK_DEFINITION_FILE.json
répondu il y a un an
Contenus pertinents
- demandé il y a un an
- demandé il y a 4 mois
- demandé il y a 6 mois
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 4 ans
- AWS OFFICIELA mis à jour il y a un an
Thank you for the prompt response. However, I don't want to use Firelens. I just want to parameterize log group & stream. I see there is a feature request. Wondering when it will be implemented.