Skip to content

Instantly share code, notes, and snippets.

@alichherawalla
Created March 23, 2023 15:54
Show Gist options
  • Select an option

  • Save alichherawalla/7b61e87329310b10752224c056a4c670 to your computer and use it in GitHub Desktop.

Select an option

Save alichherawalla/7b61e87329310b10752224c056a4c670 to your computer and use it in GitHub Desktop.
task-definition-svc-gateway
{
"containerDefinitions": [
{
"name": "service-gateway",
"image": "840364872350.dkr.ecr.ap-southeast-1.amazonaws.com/aws-appmesh-envoy:v1.25.1.0-prod",
"cpu": 0,
"portMappings": [
{
"name": "service-gateway-9080-tcp",
"containerPort": 9080,
"hostPort": 9080,
"protocol": "tcp",
"appProtocol": "http"
}
],
"essential": true,
"environment": [],
"environmentFiles": [],
"mountPoints": [],
"volumesFrom": [],
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/ecs/sample-app-ecs-service-gateway",
"awslogs-region": "ap-south-1",
"awslogs-stream-prefix": "ecs"
}
},
"healthCheck": {
"command": [
"CMD-SHELL",
"curl -s http://localhost:9901/server_info | grep state | grep -q LIVE"
],
"interval": 30,
"timeout": 5,
"retries": 3
}
}
],
"family": "sample-app-ecs-service-gateway",
"executionRoleArn": "arn:aws:iam::<AWS_ACCOUNT_ID>:role/ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [],
"placementConstraints": [],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "512",
"runtimePlatform": {
"cpuArchitecture": "X86_64",
"operatingSystemFamily": "LINUX"
},
"tags": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment