Skip to content

Instantly share code, notes, and snippets.

@emrekasg
Created July 16, 2023 17:55
Show Gist options
  • Save emrekasg/284682d540db7161d50aa3cfbbaac671 to your computer and use it in GitHub Desktop.
Save emrekasg/284682d540db7161d50aa3cfbbaac671 to your computer and use it in GitHub Desktop.
{
"family": "kloiablog",
"containerDefinitions": [
{
"name": "example_container",
"image": "<YOUR_APPLICATION_IMAGE>",
"cpu": 1024,
"memory": 2048,
"portMappings": [],
"essential": true,
"environment": [
],
"mountPoints": [],
"volumesFrom": [],
"dependsOn": [
{
"containerName": "envoy-sidecar",
"condition": "HEALTHY"
}
]
},
{
"name": "envoy-sidecar",
"image": "<YOUR_ENVOY_SIDECAR_REGISTRY>",
"cpu": 0,
"portMappings": [
{
"name": "envoy-sidecar-9901-tcp",
"containerPort": 9901,
"hostPort": 9901,
"protocol": "tcp",
"appProtocol": "http2"
},
{
"name": "envoy-sidecar-10000-tcp",
"containerPort": 10000,
"hostPort": 10000,
"protocol": "tcp",
"appProtocol": "http2"
}
],
"essential": true,
"environment": [],
"healthCheck": {
"command": [
"CMD-SHELL",
"curl -f http://localhost:9901 || exit 1"
],
"interval": 10,
"timeout": 5,
"retries": 3,
"startPeriod": 0
}
}
],
"taskRoleArn": "arn:aws:iam::ID:role/ecsTaskExecutionRole",
"executionRoleArn": "arn:aws:iam::ID:role/ecsTaskExecutionRole",
"networkMode": "awsvpc",
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "1024",
"memory": "3072",
"runtimePlatform": {
"cpuArchitecture": "X86_64",
"operatingSystemFamily": "LINUX"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment