diff --git a/.aws/task-definition.json b/.aws/task-definition.json index 73c01e2..146efd6 100644 --- a/.aws/task-definition.json +++ b/.aws/task-definition.json @@ -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": [] }