Skip to content

Instantly share code, notes, and snippets.

@goswamig
Created October 23, 2020 01:34
Show Gist options
  • Save goswamig/3f7122ec73d5e62a1090b2a132c56528 to your computer and use it in GitHub Desktop.
Save goswamig/3f7122ec73d5e62a1090b2a132c56528 to your computer and use it in GitHub Desktop.
{
"requiresCompatibilities": [
"FARGATE"
],
"executionRoleArn": "arn:aws:iam::xxxxx:role/ecsTaskExecutionRole",
"containerDefinitions": [
{
"command": [
"tensorflow_model_server --port=8500 --rest_api_port=8501 --model_name=saved_model_half_plus_two_cpu --model_base_path=/models/saved_model_half_plus_two_cpu"
],
"entryPoint": [
"sh",
"-c"
],
"name": "FargateTFInference",
"image": "tensorflow/serving",
"memory": 10240,
"cpu": 0,
"essential": true,
"portMappings": [
{
"hostPort": 8500,
"protocol": "tcp",
"containerPort": 8500
},
{
"hostPort": 8501,
"protocol": "tcp",
"containerPort": 8501
},
{
"containerPort": 80,
"protocol": "tcp"
}
],
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "/ecs/TFInference",
"awslogs-region": "us-west-2",
"awslogs-stream-prefix": "ecs"
}
}
}
],
"volumes": [],
"networkMode": "awsvpc",
"cpu": "4096",
"memory": "10240",
"placementConstraints": [],
"family": "FargateTFInference"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment