-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Copy task-definition JSON values from AWS console
- Loading branch information
1 parent
079539a
commit 17099aa
Showing
1 changed file
with
69 additions
and
222 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,237 +1,84 @@ | ||
{ | ||
"family": "", | ||
"taskRoleArn": "", | ||
"executionRoleArn": "", | ||
"networkMode": "bridge", | ||
"containerDefinitions": [ | ||
{ | ||
"name": "", | ||
"image": "", | ||
"repositoryCredentials": { | ||
"credentialsParameter": "" | ||
}, | ||
"cpu": 0, | ||
"memory": 0, | ||
"memoryReservation": 0, | ||
"links": [""], | ||
"portMappings": [ | ||
"taskDefinitionArn": "arn:aws:ecs:ap-southeast-2:278114251809:task-definition/go-hello-definition:1", | ||
"containerDefinitions": [ | ||
{ | ||
"containerPort": 0, | ||
"hostPort": 0, | ||
"protocol": "tcp", | ||
"name": "", | ||
"appProtocol": "http", | ||
"containerPortRange": "" | ||
"name": "go-hello", | ||
"image": "278114251809.dkr.ecr.ap-southeast-2.amazonaws.com/go-hello:latest", | ||
"cpu": 0, | ||
"portMappings": [ | ||
{ | ||
"name": "go-hello-80-tcp", | ||
"containerPort": 80, | ||
"hostPort": 80, | ||
"protocol": "tcp", | ||
"appProtocol": "http" | ||
} | ||
], | ||
"essential": true, | ||
"environment": [], | ||
"environmentFiles": [], | ||
"mountPoints": [], | ||
"volumesFrom": [], | ||
"ulimits": [], | ||
"logConfiguration": { | ||
"logDriver": "awslogs", | ||
"options": { | ||
"awslogs-create-group": "true", | ||
"awslogs-group": "/ecs/go-hello-definition", | ||
"awslogs-region": "ap-southeast-2", | ||
"awslogs-stream-prefix": "ecs" | ||
}, | ||
"secretOptions": [] | ||
} | ||
} | ||
], | ||
"essential": true, | ||
"entryPoint": [""], | ||
"command": [""], | ||
"environment": [ | ||
], | ||
"family": "go-hello-definition", | ||
"executionRoleArn": "arn:aws:iam::278114251809:role/ecsTaskExecutionRole", | ||
"networkMode": "awsvpc", | ||
"revision": 1, | ||
"volumes": [], | ||
"status": "ACTIVE", | ||
"requiresAttributes": [ | ||
{ | ||
"name": "", | ||
"value": "" | ||
} | ||
], | ||
"environmentFiles": [ | ||
{ | ||
"value": "", | ||
"type": "s3" | ||
} | ||
], | ||
"mountPoints": [ | ||
{ | ||
"sourceVolume": "", | ||
"containerPath": "", | ||
"readOnly": true | ||
} | ||
], | ||
"volumesFrom": [ | ||
{ | ||
"sourceContainer": "", | ||
"readOnly": true | ||
} | ||
], | ||
"linuxParameters": { | ||
"capabilities": { | ||
"add": [""], | ||
"drop": [""] | ||
"name": "com.amazonaws.ecs.capability.logging-driver.awslogs" | ||
}, | ||
"devices": [ | ||
{ | ||
"hostPath": "", | ||
"containerPath": "", | ||
"permissions": ["read"] | ||
} | ||
], | ||
"initProcessEnabled": true, | ||
"sharedMemorySize": 0, | ||
"tmpfs": [ | ||
{ | ||
"containerPath": "", | ||
"size": 0, | ||
"mountOptions": [""] | ||
} | ||
], | ||
"maxSwap": 0, | ||
"swappiness": 0 | ||
}, | ||
"secrets": [ | ||
{ | ||
"name": "", | ||
"valueFrom": "" | ||
} | ||
], | ||
"dependsOn": [ | ||
"name": "ecs.capability.execution-role-awslogs" | ||
}, | ||
{ | ||
"containerName": "", | ||
"condition": "START" | ||
} | ||
], | ||
"startTimeout": 0, | ||
"stopTimeout": 0, | ||
"hostname": "", | ||
"user": "", | ||
"workingDirectory": "", | ||
"disableNetworking": true, | ||
"privileged": true, | ||
"readonlyRootFilesystem": true, | ||
"dnsServers": [""], | ||
"dnsSearchDomains": [""], | ||
"extraHosts": [ | ||
"name": "com.amazonaws.ecs.capability.ecr-auth" | ||
}, | ||
{ | ||
"hostname": "", | ||
"ipAddress": "" | ||
} | ||
], | ||
"dockerSecurityOptions": [""], | ||
"interactive": true, | ||
"pseudoTerminal": true, | ||
"dockerLabels": { | ||
"KeyName": "" | ||
}, | ||
"ulimits": [ | ||
"name": "com.amazonaws.ecs.capability.docker-remote-api.1.19" | ||
}, | ||
{ | ||
"name": "core", | ||
"softLimit": 0, | ||
"hardLimit": 0 | ||
} | ||
], | ||
"logConfiguration": { | ||
"logDriver": "json-file", | ||
"options": { | ||
"KeyName": "" | ||
"name": "ecs.capability.execution-role-ecr-pull" | ||
}, | ||
"secretOptions": [ | ||
{ | ||
"name": "", | ||
"valueFrom": "" | ||
} | ||
] | ||
}, | ||
"healthCheck": { | ||
"command": [""], | ||
"interval": 0, | ||
"timeout": 0, | ||
"retries": 0, | ||
"startPeriod": 0 | ||
}, | ||
"systemControls": [ | ||
{ | ||
"namespace": "", | ||
"value": "" | ||
} | ||
], | ||
"resourceRequirements": [ | ||
"name": "com.amazonaws.ecs.capability.docker-remote-api.1.18" | ||
}, | ||
{ | ||
"value": "", | ||
"type": "GPU" | ||
} | ||
], | ||
"firelensConfiguration": { | ||
"type": "fluentd", | ||
"options": { | ||
"KeyName": "" | ||
} | ||
}, | ||
"credentialSpecs": [""] | ||
} | ||
], | ||
"volumes": [ | ||
{ | ||
"name": "", | ||
"host": { | ||
"sourcePath": "" | ||
}, | ||
"dockerVolumeConfiguration": { | ||
"scope": "task", | ||
"autoprovision": true, | ||
"driver": "", | ||
"driverOpts": { | ||
"KeyName": "" | ||
"name": "ecs.capability.task-eni" | ||
}, | ||
"labels": { | ||
"KeyName": "" | ||
} | ||
}, | ||
"efsVolumeConfiguration": { | ||
"fileSystemId": "", | ||
"rootDirectory": "", | ||
"transitEncryption": "ENABLED", | ||
"transitEncryptionPort": 0, | ||
"authorizationConfig": { | ||
"accessPointId": "", | ||
"iam": "ENABLED" | ||
} | ||
}, | ||
"fsxWindowsFileServerVolumeConfiguration": { | ||
"fileSystemId": "", | ||
"rootDirectory": "", | ||
"authorizationConfig": { | ||
"credentialsParameter": "", | ||
"domain": "" | ||
{ | ||
"name": "com.amazonaws.ecs.capability.docker-remote-api.1.29" | ||
} | ||
} | ||
} | ||
], | ||
"placementConstraints": [ | ||
{ | ||
"type": "memberOf", | ||
"expression": "" | ||
} | ||
], | ||
"requiresCompatibilities": ["EC2"], | ||
"cpu": "", | ||
"memory": "", | ||
"tags": [ | ||
{ | ||
"key": "", | ||
"value": "" | ||
} | ||
], | ||
"pidMode": "host", | ||
"ipcMode": "host", | ||
"proxyConfiguration": { | ||
"type": "APPMESH", | ||
"containerName": "", | ||
"properties": [ | ||
{ | ||
"name": "", | ||
"value": "" | ||
} | ||
] | ||
}, | ||
"inferenceAccelerators": [ | ||
{ | ||
"deviceName": "", | ||
"deviceType": "" | ||
} | ||
], | ||
"ephemeralStorage": { | ||
"sizeInGiB": 0 | ||
}, | ||
"runtimePlatform": { | ||
"cpuArchitecture": "X86_64", | ||
"operatingSystemFamily": "WINDOWS_SERVER_2019_FULL" | ||
} | ||
], | ||
"placementConstraints": [], | ||
"compatibilities": [ | ||
"EC2", | ||
"FARGATE" | ||
], | ||
"requiresCompatibilities": [ | ||
"FARGATE" | ||
], | ||
"cpu": "256", | ||
"memory": "2048", | ||
"runtimePlatform": { | ||
"cpuArchitecture": "X86_64", | ||
"operatingSystemFamily": "LINUX" | ||
}, | ||
"registeredAt": "2024-02-15T05:19:52.223Z", | ||
"registeredBy": "arn:aws:iam::278114251809:user/admin", | ||
"tags": [] | ||
} |