Task #2389
open
- Subject changed from scripts to run containers in AWS ECS task to scripts for runnin containers in AWS ECS task
https://git.bcvsolutions.eu/czechidm/docker-test-environment/tree/develop/awsidmInTask
JSON task definition creation:
Configure task definition in AWS console, then display the json and save its content to ordinary json file. Then do these adjustments:
1) remove keys with null values
2) remove sections: requiresAttributes, compatibilities
3) remove these keys: revision, status, taskDefinitionArn
Now I don't know if there's a better way , maybe yes
Task definition, which can be used to create new revision, can be created by this command from existing revision:
aws ecs describe-task-definition --task-definition idm:29 |jq '.taskDefinition | del( .requiresAttributes,.compatibilities,.taskDefinitionArn,.revision,.status)' >idm_task_definition.json
Configuration with 3 containers (mariadb, postgres, idm) was tested.
Also available in: Atom
PDF