Actions
Task #2389
openscripts for runnin containers in AWS ECS task
Status:
In Progress
Priority:
Normal
Assignee:
Jan Kolařík
Category:
-
Target version:
-
Start date:
07/14/2020
Due date:
% Done:
0%
Estimated time:
Owner:
Updated by Jan Kolařík over 4 years ago
- 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
Updated by Jan Kolařík over 4 years ago
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.
Actions