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
feita há 2 meses415 visualizações
1 Resposta
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
respondido há 2 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas