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 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南