ECS Cluster with Fargate does not create

0

Hello, While I understand using Fargate for ECS Cluster is pay as you go- I am still unable to create the cluster. The first attempt gave me this error:-

There was an error creating cluster humangov-cluster. Resource handler returned message: "Error occurred during operation 'CreateCluster SDK error: Service Unavailable. Please try again later. (Service: AmazonECS; Status Code: 500; Error Code: ServerException; Request ID: f55de395-bfd9-4d13-bcf4-c845cde944c1; Proxy: null)'." (RequestToken: 72b1833b-35f2-0838-333b-73743b6f24c2, HandlerErrorCode: GeneralServiceException

On retrying it says cluster already exists(see error below) but I do not see it listed: There was an error creating humangov-cluster, Stack[Infra-ECS-Cluster-humangov-cluster-812ee83b] already exists.

Please advise.

Someone in the past said try different times, but it doesnt work. It looks like its created something with that name.

<<This looks likely to be related to the service linked role AWSServiceRoleForECS. If not already created, the creation during CreateCluster uses a best effort approach. In the result, service linked role AWSServiceRoleForECS doesn't appear though ECS cluster is created. For example, creating Service Linked role would fail due to throttling error for iam:CreateServiceLinkedRole. I'd recommend you to create the Service Linked role AWSServiceRoleForECS manually using CreateServiceLinkedRole API. You can also see the related documentation here.>>

profile picture
HP
質問済み 4ヶ月前473ビュー
2回答
2
承認された回答

Hello.

CloudFormation is running behind the scenes to create an ECS cluster.
Try deleting the "Infra-ECS-Cluster-humangov-cluster-812ee83b" stack from the CloudFormation console.

profile picture
エキスパート
回答済み 4ヶ月前
  • this worked. Many thanks!

1

Hi HP, as ECS use CloudFormation behind the scene, what probably happen is that:

  • during your previous attempt, a Cloud Formation Stack was created with the name of your cluster even if the cluster is not created, the stack remain in the list of CloudFormation
  • when you tried a second time, using the same name for the ECS cluster, the system tried to re-create the CloudFormation stack again, however a stack with the same name already exists.

To solve this, you just need to enter the Cloud Formation page and delete the failed stack and then re-create the cluster

AWS
回答済み 4ヶ月前
  • Got it. Thanks

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ