{"action":"created","issue":{"url":"https://api.github.com/repos/rebuy-de/aws-nuke/issues/231","repository_url":"https://api.github.com/repos/rebuy-de/aws-nuke","labels_url":"https://api.github.com/repos/rebuy-de/aws-nuke/issues/231/labels{/name}","comments_url":"https://api.github.com/repos/rebuy-de/aws-nuke/issues/231/comments","events_url":"https://api.github.com/repos/rebuy-de/aws-nuke/issues/231/events","html_url":"https://github.com/rebuy-de/aws-nuke/issues/231","id":339793468,"node_id":"MDU6SXNzdWUzMzk3OTM0Njg=","number":231,"title":"Can't delete ECSCluster because ECS Services still active","user":{"login":"nattaphon-dailitech","id":34037470,"node_id":"MDQ6VXNlcjM0MDM3NDcw","avatar_url":"https://avatars1.githubusercontent.com/u/34037470?v=4","gravatar_id":"","url":"https://api.github.com/users/nattaphon-dailitech","html_url":"https://github.com/nattaphon-dailitech","followers_url":"https://api.github.com/users/nattaphon-dailitech/followers","following_url":"https://api.github.com/users/nattaphon-dailitech/following{/other_user}","gists_url":"https://api.github.com/users/nattaphon-dailitech/gists{/gist_id}","starred_url":"https://api.github.com/users/nattaphon-dailitech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nattaphon-dailitech/subscriptions","organizations_url":"https://api.github.com/users/nattaphon-dailitech/orgs","repos_url":"https://api.github.com/users/nattaphon-dailitech/repos","events_url":"https://api.github.com/users/nattaphon-dailitech/events{/privacy}","received_events_url":"https://api.github.com/users/nattaphon-dailitech/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-07-10T11:00:17Z","updated_at":"2018-07-10T23:32:21Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\nI got an error when trying to clean ECSCluster resources.\r\n\r\n```\r\nap-southeast-1 - ECSCluster - arn:aws:ecs:ap-southeast-1:220220223129:cluster/BreakTheMonolith-Demo-ECSCluster-OEX9HCNI86YN - ClusterContainsServicesException: The Cluster cannot be deleted while Services are active.\r\n\tstatus code: 400, request id: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\r\n\r\nRemoval requested: 0 waiting, 1 failed, 0 skipped, 0 finished\r\n```\r\nRegards"},"comment":{"url":"https://api.github.com/repos/rebuy-de/aws-nuke/issues/comments/403997988","html_url":"https://github.com/rebuy-de/aws-nuke/issues/231#issuecomment-403997988","issue_url":"https://api.github.com/repos/rebuy-de/aws-nuke/issues/231","id":403997988,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzk5Nzk4OA==","user":{"login":"nattaphon-dailitech","id":34037470,"node_id":"MDQ6VXNlcjM0MDM3NDcw","avatar_url":"https://avatars1.githubusercontent.com/u/34037470?v=4","gravatar_id":"","url":"https://api.github.com/users/nattaphon-dailitech","html_url":"https://github.com/nattaphon-dailitech","followers_url":"https://api.github.com/users/nattaphon-dailitech/followers","following_url":"https://api.github.com/users/nattaphon-dailitech/following{/other_user}","gists_url":"https://api.github.com/users/nattaphon-dailitech/gists{/gist_id}","starred_url":"https://api.github.com/users/nattaphon-dailitech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nattaphon-dailitech/subscriptions","organizations_url":"https://api.github.com/users/nattaphon-dailitech/orgs","repos_url":"https://api.github.com/users/nattaphon-dailitech/repos","events_url":"https://api.github.com/users/nattaphon-dailitech/events{/privacy}","received_events_url":"https://api.github.com/users/nattaphon-dailitech/received_events","type":"User","site_admin":false},"created_at":"2018-07-10T23:32:21Z","updated_at":"2018-07-10T23:32:21Z","author_association":"NONE","body":"Hi @tomvachon,\r\n\r\nI have a configuration file with targets resources.\r\n```\r\nregions:\r\n  - global\r\n  - ap-southeast-1 # Asia Pacific (Singapore)\r\n\r\nresource-types:\r\n  targets:\r\n    - ECSCluster\r\n    - ECSClusterInstance\r\n```\r\nand verbose output\r\n```\r\nDEBU[0068] sending AWS request:\r\n    > POST / HTTP/1.1\r\n    > Host: ecs.ap-southeast-1.amazonaws.com\r\n    > Authorization: <hidden>\r\n    > Content-Length: 107\r\n    > Content-Type: application/x-amz-json-1.1\r\n    > User-Agent: aws-sdk-go/1.14.9 (go1.10.2; linux; amd64)\r\n    > X-Amz-Date: 20180710T232040Z\r\n    > X-Amz-Security-Token: <hidden>\r\n    > X-Amz-Target: AmazonEC2ContainerServiceV20141113.DeleteCluster\r\n    > \r\n    > {\"cluster\":\"arn:aws:ecs:ap-southeast-1:xxxxxxxxxxxx:cluster/BreakTheMonolith-Demo-ECSCluster-OEX9HCNI86YN\"} \r\nDEBU[0068] received AWS response:\r\n    < HTTP/1.1 400 Bad Request\r\n    < Content-Length: 114\r\n    < Connection: keep-alive\r\n    < Content-Type: application/x-amz-json-1.1\r\n    < Date: Tue, 10 Jul 2018 23:20:40 GMT\r\n    < Server: Server\r\n    < X-Amzn-Requestid: dc07d9ad-8497-11e8-9bfb-f186a2b3039f\r\n    < \r\n    < {\"__type\":\"ClusterContainsServicesException\",\"message\":\"The Cluster cannot be deleted while Services are active.\"} \r\nDEBU[0068] sending AWS request:\r\n    > POST / HTTP/1.1\r\n    > Host: ecs.ap-southeast-1.amazonaws.com\r\n    > Authorization: <hidden>\r\n    > Content-Length: 18\r\n    > Content-Type: application/x-amz-json-1.1\r\n    > User-Agent: aws-sdk-go/1.14.9 (go1.10.2; linux; amd64)\r\n    > X-Amz-Date: 20180710T232040Z\r\n    > X-Amz-Security-Token: <hidden>\r\n    > X-Amz-Target: AmazonEC2ContainerServiceV20141113.ListClusters\r\n    > \r\n    > {\"maxResults\":100} \r\nDEBU[0068] received AWS response:\r\n    < HTTP/1.1 200 OK\r\n    < Content-Length: 113\r\n    < Connection: keep-alive\r\n    < Content-Type: application/x-amz-json-1.1\r\n    < Date: Tue, 10 Jul 2018 23:20:40 GMT\r\n    < Server: Server\r\n    < X-Amzn-Requestid: dc1435be-8497-11e8-9bfb-f186a2b3039f\r\n    < \r\n    < {\"clusterArns\":[\"arn:aws:ecs:ap-southeast-1:xxxxxxxxxxxx:cluster/BreakTheMonolith-Demo-ECSCluster-OEX9HCNI86YN\"]} \r\nap-southeast-1 - ECSCluster - arn:aws:ecs:ap-southeast-1:xxxxxxxxxxxx:cluster/BreakTheMonolith-Demo-ECSCluster-OEX9HCNI86YN - ClusterContainsServicesException: The Cluster cannot be deleted while Services are active.\r\n\tstatus code: 400, request id: dc07d9ad-8497-11e8-9bfb-f186a2b3039f\r\n\r\nRemoval requested: 0 waiting, 1 failed, 0 skipped, 0 finished\r\n\r\nError: There are resources in failed state, but none are ready for deletion, anymore.\r\n```\r\n\r\n@svenwltr yes, I agree with you.\r\n"}}
{"actor":{"display_login":"nattaphon-dailitech"}}