Linux worldls-302.fr.planethoster.net 4.18.0-553.8.1.lve.el7h.x86_64 #1 SMP Thu Jul 4 15:19:33 UTC 2024 x86_64
LiteSpeed
Server IP : 10.185.0.203 & Your IP : 216.73.217.14
Domains :
Cant Read [ /etc/named.conf ]
User : gerathty
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib /
python2.7 /
site-packages /
awscli /
examples /
ecs /
Delete
Unzip
Name
Size
Permission
Date
Action
create-cluster.rst
498
B
-rw-r--r--
2017-04-04 16:39
create-service.rst
3.49
KB
-rw-r--r--
2017-04-04 16:39
delete-cluster.rst
497
B
-rw-r--r--
2017-04-04 16:39
delete-service.rst
238
B
-rw-r--r--
2017-04-04 16:39
deregister-container-instance.rst
416
B
-rw-r--r--
2017-04-04 16:39
deregister-task-definition.rst
1.08
KB
-rw-r--r--
2017-04-04 16:39
describe-clusters.rst
586
B
-rw-r--r--
2017-04-04 16:39
describe-container-instances.rst
2.77
KB
-rw-r--r--
2017-04-04 16:39
describe-services.rst
1.6
KB
-rw-r--r--
2017-04-04 16:39
describe-task-definition.rst
1.51
KB
-rw-r--r--
2017-04-04 16:39
describe-tasks.rst
1.69
KB
-rw-r--r--
2017-04-04 16:39
list-clusters.rst
331
B
-rw-r--r--
2017-04-04 16:39
list-container-instances.rst
513
B
-rw-r--r--
2017-04-04 16:39
list-services.rst
263
B
-rw-r--r--
2017-04-04 16:39
list-task-definition-families.rst
613
B
-rw-r--r--
2017-04-04 16:39
list-task-definitions.rst
1.23
KB
-rw-r--r--
2017-04-04 16:39
list-tasks.rst
794
B
-rw-r--r--
2017-04-04 16:39
register-task-definition.rst
2.78
KB
-rw-r--r--
2017-04-04 16:39
run-task.rst
1.26
KB
-rw-r--r--
2017-04-04 16:39
update-container-agent.rst
636
B
-rw-r--r--
2017-04-04 16:39
update-service.rst
484
B
-rw-r--r--
2017-04-04 16:39
Save
Rename
**To register a task definition with a JSON file** This example registers a task definition to the specified family with container definitions that are saved in JSON format at the specified file location. Command:: aws ecs register-task-definition --cli-input-json file://<path_to_json_file>/sleep360.json JSON file format:: { "containerDefinitions": [ { "name": "sleep", "image": "busybox", "cpu": 10, "command": [ "sleep", "360" ], "memory": 10, "essential": true } ], "family": "sleep360" } Output:: { "taskDefinition": { "volumes": [], "taskDefinitionArn": "arn:aws:ecs:us-east-1:<aws_account_id>:task-definition/sleep360:19", "containerDefinitions": [ { "environment": [], "name": "sleep", "mountPoints": [], "image": "busybox", "cpu": 10, "portMappings": [], "command": [ "sleep", "360" ], "memory": 10, "essential": true, "volumesFrom": [] } ], "family": "sleep360", "revision": 1 } } **To register a task definition with a JSON string** This example registers a the same task definition from the previous example, but the container definitions are in a string format with the double quotes escaped. Command:: aws ecs register-task-definition --family sleep360 --container-definitions "[{\"name\":\"sleep\",\"image\":\"busybox\",\"cpu\":10,\"command\":[\"sleep\",\"360\"],\"memory\":10,\"essential\":true}]" **To use data volumes in a task definition** This example task definition creates a data volume called `webdata` that exists at `/ecs/webdata` on the container instance. The volume is mounted read-only as `/usr/share/nginx/html` on the `web` container, and read-write as `/nginx/` on the `timer` container. Task Definition:: { "family": "web-timer", "containerDefinitions": [ { "name": "web", "image": "nginx", "cpu": 99, "memory": 100, "portMappings": [{ "containerPort": 80, "hostPort": 80 }], "essential": true, "mountPoints": [{ "sourceVolume": "webdata", "containerPath": "/usr/share/nginx/html", "readOnly": true }] }, { "name": "timer", "image": "busybox", "cpu": 10, "memory": 20, "entryPoint": ["sh", "-c"], "command": ["while true; do date > /nginx/index.html; sleep 1; done"], "mountPoints": [{ "sourceVolume": "webdata", "containerPath": "/nginx/" }] }], "volumes": [{ "name": "webdata", "host": { "sourcePath": "/ecs/webdata" }} ] }