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달 전468회 조회
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

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠