Unsupported resource type: cluster' error while calling AmazonECSClient.RunTaskAsync

0

var request = new RunTaskRequest { Cluster = "zzzz", LaunchType = LaunchType.FARGATE, TaskDefinition = "zzzz", Count = 1, // Number of tasks to run } I have created a task with launch type = "Fargate" under a Cluster in ECS. I am trying to call the service from my asp.net core api. I am getting this strange error Unsupported resource type: cluster' error while calling AmazonECSClient.RunTaskAsync . It sounds like, I have mis-configured the cluster somewhere. Can you guys please help me out to sort it? The fargate task is a asp.net core web api's image. It has playwright in it to convert a url to pdf. Please let me know if you want any further information to diagnose the issue.

Thanks, Indu.

  • I was able to fix this. Instead of the cluster name itself, I was using cluster ARN. So, it was not able to recognize it. Now it is working. - Thank you!!

Indu
質問済み 2ヶ月前414ビュー
1回答
0

Hello,

You can check few things which might help, please make sure that the cluster exists and that you are giving the correct name and there are no spelling mistakes. Next check the IAM role used have the correct permissions and there are no restrictions at organization level also the aws credentials are defined correctly in your code. Further, to check the configurations of the cluster please feel free to raise a case with aws support as it required the details that are non-public information.

AWS
sanju_s
回答済み 2ヶ月前

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

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

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

関連するコンテンツ