Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Sample output from DescribeServices
{
"services": [
{
"serviceArn": "arn:aws:ecs:us-west-2:1111:service/webapp-test-Cluster-3e6uy3HcK0Pj/webapp-test-frontend-Service-ss036XlczgjO",
"serviceName": "webapp-test-frontend-Service-ss036XlczgjO",
"clusterArn": "arn:aws:ecs:us-west-2:1111:cluster/webapp-test-Cluster-3e6uy3HcK0Pj",
"loadBalancers": [
{
"targetGroupArn": "arn:aws:elasticloadbalancing:us-west-2:1111:targetgroup/webap-Targe-1BVQQ027T1SY4/38f27cc05e253681",
"containerName": "frontend",
"containerPort": 8080
}
],
"serviceRegistries": [
{
"registryArn": "arn:aws:servicediscovery:us-west-2:1111:service/srv-nqgtyablt4maasds",
"port": 8080
}
],
"status": "ACTIVE",
"desiredCount": 1,
"runningCount": 1,
"pendingCount": 0,
"launchType": "FARGATE",
"platformVersion": "LATEST",
"taskDefinition": "arn:aws:ecs:us-west-2:1111:task-definition/webapp-test-frontend:3",
"deploymentConfiguration": {
"deploymentCircuitBreaker": {
"enable": true,
"rollback": true
},
"maximumPercent": 200,
"minimumHealthyPercent": 100
},
"deployments": [
{
"id": "ecs-svc/7871425749309085630",
"status": "PRIMARY",
"taskDefinition": "arn:aws:ecs:us-west-2:1111:task-definition/webapp-test-frontend:3",
"desiredCount": 1,
"pendingCount": 0,
"runningCount": 1,
"failedTasks": 0,
"createdAt": "2021-01-15T13:24:12.214000-08:00",
"updatedAt": "2021-01-15T13:27:53.522000-08:00",
"launchType": "FARGATE",
"platformVersion": "1.3.0",
"networkConfiguration": {
"awsvpcConfiguration": {
"subnets": [
"subnet-04c9a4fcc988ce99e",
"subnet-08e574414c6ad61fa"
],
"securityGroups": [
"sg-033e1d6fc2eb4106f"
],
"assignPublicIp": "ENABLED"
}
},
"rolloutState": "COMPLETED",
"rolloutStateReason": "ECS deployment ecs-svc/7871425749309085630 completed."
}
],
"roleArn": "arn:aws:iam::1111:role/aws-service-role/ecs.amazonaws.com/AWSServiceRoleForECS",
"events": [
{
"id": "7c384653-a577-4dee-b36e-4b3d925be973",
"createdAt": "2021-01-18T13:32:15.594000-08:00",
"message": "(service webapp-test-frontend-Service-ss036XlczgjO) has reached a steady state."
},
{
"id": "1a0b1184-8241-4e1e-93f1-3f5aeceaf404",
"createdAt": "2021-01-18T07:31:41.757000-08:00",
"message": "(service webapp-test-frontend-Service-ss036XlczgjO) has reached a steady state."
},
{
"id": "eb863996-5f8c-44d0-8c52-f98a2e8c36c5",
"createdAt": "2021-01-18T01:31:32.034000-08:00",
"message": "(service webapp-test-frontend-Service-ss036XlczgjO) has reached a steady state."
},
{
"id": "e6bebc23-75e4-4da7-b9a7-90505c552f5d",
"createdAt": "2021-01-17T19:31:28.488000-08:00",
"message": "(service webapp-test-frontend-Service-ss036XlczgjO) has reached a steady state."
},
{
"id": "4a38b412-dd6b-4d60-a5ce-a166098656ed",
"createdAt": "2021-01-17T13:30:57.586000-08:00",
"message": "(service webapp-test-frontend-Service-ss036XlczgjO) has reached a steady state."
},
{
"id": "ebffa1f5-f5f2-4720-9b06-5f3eed03af4d",
"createdAt": "2021-01-17T07:30:12.676000-08:00",
"message": "(service webapp-test-frontend-Service-ss036XlczgjO) has reached a steady state."
},
{
"id": "7510de0b-840a-47f8-a827-e177d463c2ed",
"createdAt": "2021-01-17T01:29:37.866000-08:00",
"message": "(service webapp-test-frontend-Service-ss036XlczgjO) has reached a steady state."
},
{
"id": "cd15eb37-84c7-47f9-b6d5-0935809d2ed2",
"createdAt": "2021-01-16T19:29:06.936000-08:00",
"message": "(service webapp-test-frontend-Service-ss036XlczgjO) has reached a steady state."
},
{
"id": "0501e5d9-6803-49ed-aef4-b806d29ac3ac",
"createdAt": "2021-01-16T13:28:54.139000-08:00",
"message": "(service webapp-test-frontend-Service-ss036XlczgjO) has reached a steady state."
},
{
"id": "8f9249f3-84a2-41d4-9276-6fe9c4ae9f0b",
"createdAt": "2021-01-16T07:28:37.519000-08:00",
"message": "(service webapp-test-frontend-Service-ss036XlczgjO) has reached a steady state."
},
{
"id": "a6de7899-6a83-45e9-9140-4c62e4b103b0",
"createdAt": "2021-01-16T01:28:12.394000-08:00",
"message": "(service webapp-test-frontend-Service-ss036XlczgjO) has reached a steady state."
},
{
"id": "cffba5ef-0b06-4898-83c7-4daf406e5cf2",
"createdAt": "2021-01-15T19:28:06.377000-08:00",
"message": "(service webapp-test-frontend-Service-ss036XlczgjO) has reached a steady state."
},
{
"id": "1c38d8f0-273c-4210-b187-1edadb5a9f43",
"createdAt": "2021-01-15T13:27:53.533000-08:00",
"message": "(service webapp-test-frontend-Service-ss036XlczgjO) has reached a steady state."
},
{
"id": "9576274a-6bd9-4e04-92ca-fe893759cae6",
"createdAt": "2021-01-15T13:27:53.532000-08:00",
"message": "(service webapp-test-frontend-Service-ss036XlczgjO) (deployment ecs-svc/7871425749309085630) deployment completed."
},
{
"id": "900552f1-4ff5-4008-ac7a-b3497e4987f1",
"createdAt": "2021-01-15T13:27:35-08:00",
"message": "(service webapp-test-frontend-Service-ss036XlczgjO) has stopped 1 running tasks: (task d3364c3e26604fcb8140d34db34ab98c)."
},
{
"id": "c9856f7c-db93-4f23-b4b6-b8cc551abf87",
"createdAt": "2021-01-15T13:26:27.396000-08:00",
"message": "(service webapp-test-frontend-Service-ss036XlczgjO) has begun draining connections on 1 tasks."
},
{
"id": "3da77d82-e48e-4491-9b5e-779c0aeef3de",
"createdAt": "2021-01-15T13:26:27.395000-08:00",
"message": "(service webapp-test-frontend-Service-ss036XlczgjO) deregistered 1 targets in (target-group arn:aws:elasticloadbalancing:us-west-2:1111:targetgroup/webap-Targe-1BVQQ027T1SY4/38f27cc05e253681)"
},
{
"id": "e1962053-8812-4398-b7d9-c9b4f7f2b946",
"createdAt": "2021-01-15T13:25:45.781000-08:00",
"message": "(service webapp-test-frontend-Service-ss036XlczgjO) registered 1 targets in (target-group arn:aws:elasticloadbalancing:us-west-2:1111:targetgroup/webap-Targe-1BVQQ027T1SY4/38f27cc05e253681)"
},
{
"id": "3f96a381-f21b-415a-8293-e0099c47145a",
"createdAt": "2021-01-15T13:24:22.826000-08:00",
"message": "(service webapp-test-frontend-Service-ss036XlczgjO) has started 1 tasks: (task f017e8f8e03f4657ba3a77093fb2493c)."
},
{
"id": "eb46585e-c4ad-4bd8-b4e3-5236dc782498",
"createdAt": "2021-01-15T13:15:10.124000-08:00",
"message": "(service webapp-test-frontend-Service-ss036XlczgjO) has reached a steady state."
},
{
"id": "9ed59ba6-cd3a-452a-9e31-8ee8dbc7be3d",
"createdAt": "2021-01-15T13:15:10.123000-08:00",
"message": "(service webapp-test-frontend-Service-ss036XlczgjO) (deployment ecs-svc/8109548787442252607) deployment completed."
},
{
"id": "8ad21bba-f7ed-46b8-886c-f86cfd829efb",
"createdAt": "2021-01-15T13:14:50.449000-08:00",
"message": "(service webapp-test-frontend-Service-ss036XlczgjO) has stopped 1 running tasks: (task f88b3ea3f8f04c8ca72dd7a6fd43df97)."
},
{
"id": "ecaa6e6d-b6c9-4f8e-9293-a8ad642bb8e7",
"createdAt": "2021-01-15T13:13:42.326000-08:00",
"message": "(service webapp-test-frontend-Service-ss036XlczgjO) has begun draining connections on 1 tasks."
},
{
"id": "455ce422-6734-4609-a51c-968fd6b5bf80",
"createdAt": "2021-01-15T13:13:42.325000-08:00",
"message": "(service webapp-test-frontend-Service-ss036XlczgjO) deregistered 1 targets in (target-group arn:aws:elasticloadbalancing:us-west-2:1111:targetgroup/webap-Targe-1BVQQ027T1SY4/38f27cc05e253681)"
},
{
"id": "6db9e316-6af6-4834-a341-74fdb91a0ff4",
"createdAt": "2021-01-15T13:13:10.669000-08:00",
"message": "(service webapp-test-frontend-Service-ss036XlczgjO) registered 1 targets in (target-group arn:aws:elasticloadbalancing:us-west-2:1111:targetgroup/webap-Targe-1BVQQ027T1SY4/38f27cc05e253681)"
},
{
"id": "31085943-4dab-4926-8f17-1cb2a1581654",
"createdAt": "2021-01-15T13:11:42.074000-08:00",
"message": "(service webapp-test-frontend-Service-ss036XlczgjO) has started 1 tasks: (task d3364c3e26604fcb8140d34db34ab98c)."
},
{
"id": "c6fb7751-07d5-45b2-83d5-dd87a4f87dcd",
"createdAt": "2021-01-15T12:43:35.976000-08:00",
"message": "(service webapp-test-frontend-Service-ss036XlczgjO) has reached a steady state."
},
{
"id": "0cecac0e-de04-42ca-a1d6-a289272c84c5",
"createdAt": "2021-01-15T12:43:35.975000-08:00",
"message": "(service webapp-test-frontend-Service-ss036XlczgjO) (deployment ecs-svc/2275545980556912742) deployment completed."
},
{
"id": "924ddb03-9b82-40a9-ae86-ffe7900b7553",
"createdAt": "2021-01-15T12:43:14.365000-08:00",
"message": "(service webapp-test-frontend-Service-ss036XlczgjO) registered 1 targets in (target-group arn:aws:elasticloadbalancing:us-west-2:1111:targetgroup/webap-Targe-1BVQQ027T1SY4/38f27cc05e253681)"
},
{
"id": "1bfe89ef-a003-468a-8a11-50cf8cccbc61",
"createdAt": "2021-01-15T12:41:46.294000-08:00",
"message": "(service webapp-test-frontend-Service-ss036XlczgjO) has started 1 tasks: (task f88b3ea3f8f04c8ca72dd7a6fd43df97)."
}
],
"createdAt": "2021-01-15T12:41:42.333000-08:00",
"placementConstraints": [],
"placementStrategy": [],
"networkConfiguration": {
"awsvpcConfiguration": {
"subnets": [
"subnet-04c9a4fcc988ce99e",
"subnet-08e574414c6ad61fa"
],
"securityGroups": [
"sg-033e1d6fc2eb4106f"
],
"assignPublicIp": "ENABLED"
}
},
"healthCheckGracePeriodSeconds": 60,
"schedulingStrategy": "REPLICA",
"createdBy": "arn:aws:iam::1111:role/webapp-test-CFNExecutionRole",
"enableECSManagedTags": false,
"propagateTags": "SERVICE"
}
],
"failures": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment