Skip to content

Instantly share code, notes, and snippets.

@Kralizek
Last active March 17, 2019 16:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kralizek/de8e41179a2fb1b93135ea20a2be1453 to your computer and use it in GitHub Desktop.
Save Kralizek/de8e41179a2fb1b93135ea20a2be1453 to your computer and use it in GitHub Desktop.
RabbitMQ service on ECS

Empty file to get a better name for the gist

{
"services": [
{
"serviceArn": "arn:aws:ecs:eu-west-1:xxxxxxxxxxxx:service/bus",
"serviceName": "bus",
"clusterArn": "arn:aws:ecs:eu-west-1:xxxxxxxxxxxx:cluster/default-linux-cluster",
"loadBalancers": [],
"serviceRegistries": [],
"status": "ACTIVE",
"desiredCount": 1,
"runningCount": 1,
"pendingCount": 0,
"launchType": "EC2",
"taskDefinition": "arn:aws:ecs:eu-west-1:xxxxxxxxxxxx:task-definition/rabbitmq:16",
"deploymentConfiguration": {
"maximumPercent": 200,
"minimumHealthyPercent": 100
},
"deployments": [
{
"id": "ecs-svc/9223370484366411512",
"status": "PRIMARY",
"taskDefinition": "arn:aws:ecs:eu-west-1:xxxxxxxxxxxx:task-definition/rabbitmq:16",
"desiredCount": 1,
"pendingCount": 0,
"runningCount": 1,
"createdAt": 1552488364.295,
"updatedAt": 1552488394.751,
"launchType": "EC2"
}
],
"events": [
],
"createdAt": 1552483208.99,
"placementConstraints": [],
"placementStrategy": [
{
"type": "spread",
"field": "attribute:ecs.availability-zone"
},
{
"type": "spread",
"field": "instanceId"
}
],
"schedulingStrategy": "REPLICA",
"enableECSManagedTags": false,
"propagateTags": "NONE"
}
],
"failures": []
}
{
"ipcMode": null,
"executionRoleArn": null,
"containerDefinitions": [
{
"dnsSearchDomains": null,
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "/ecs/rabbitmq",
"awslogs-region": "eu-west-1",
"awslogs-stream-prefix": "rabbitmq"
}
},
"entryPoint": null,
"portMappings": [
{
"hostPort": 4369,
"protocol": "tcp",
"containerPort": 4369
},
{
"hostPort": 25672,
"protocol": "tcp",
"containerPort": 25672
},
{
"hostPort": 15672,
"protocol": "tcp",
"containerPort": 15672
},
{
"hostPort": 5672,
"protocol": "tcp",
"containerPort": 5672
}
],
"command": null,
"linuxParameters": null,
"cpu": 512,
"environment": [
{
"name": "RABBITMQ_DEFAULT_PASS",
"value": "my-password"
},
{
"name": "RABBITMQ_DEFAULT_USER",
"value": "my-username"
},
{
"name": "RABBITMQ_NODENAME",
"value": "bus"
},
{
"name": "RABBITMQ_VM_MEMORY_HIGH_WATERMARK",
"value": "2048MiB"
}
],
"resourceRequirements": null,
"ulimits": null,
"dnsServers": null,
"mountPoints": [
{
"readOnly": null,
"containerPath": "/var/lib/rabbitmq",
"sourceVolume": "rabbitmq"
}
],
"workingDirectory": null,
"secrets": null,
"dockerSecurityOptions": null,
"memory": 3072,
"memoryReservation": 2048,
"volumesFrom": [],
"stopTimeout": null,
"image": "rabbitmq:management",
"startTimeout": null,
"dependsOn": null,
"disableNetworking": null,
"interactive": null,
"healthCheck": null,
"essential": true,
"links": null,
"hostname": "emgbus",
"extraHosts": null,
"pseudoTerminal": null,
"user": null,
"readonlyRootFilesystem": null,
"dockerLabels": null,
"systemControls": null,
"privileged": null,
"name": "rabbitmq"
}
],
"placementConstraints": [
{
"type": "memberOf",
"expression": "attribute:efs == true"
}
],
"memory": "3072",
"taskRoleArn": null,
"compatibilities": [
"EC2"
],
"taskDefinitionArn": "arn:aws:ecs:eu-west-1:xxxxxxxxxxxx:task-definition/rabbitmq:16",
"family": "rabbitmq",
"requiresAttributes": [
{
"targetId": null,
"targetType": null,
"value": null,
"name": "com.amazonaws.ecs.capability.docker-remote-api.1.17"
},
{
"targetId": null,
"targetType": null,
"value": null,
"name": "com.amazonaws.ecs.capability.docker-remote-api.1.18"
},
{
"targetId": null,
"targetType": null,
"value": null,
"name": "com.amazonaws.ecs.capability.logging-driver.awslogs"
},
{
"targetId": null,
"targetType": null,
"value": null,
"name": "com.amazonaws.ecs.capability.docker-remote-api.1.21"
},
{
"targetId": null,
"targetType": null,
"value": null,
"name": "com.amazonaws.ecs.capability.docker-remote-api.1.19"
}
],
"pidMode": null,
"requiresCompatibilities": [
"EC2"
],
"networkMode": "host",
"cpu": "512",
"revision": 16,
"status": "ACTIVE",
"proxyConfiguration": null,
"volumes": [
{
"name": "rabbitmq",
"host": {
"sourcePath": "/home/ec2-user/efs/rabbitmq"
},
"dockerVolumeConfiguration": null
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment