Aws-sdk-js: ECS: Task start fails when using enableECSManagedTags

Created on 14 Dec 2018  路  20Comments  路  Source: aws/aws-sdk-js

AWS SDK version: 2.376.0

ECS.runTask({..., enableECSManagedTags: true},...) executes, but the task does not get into taskRunning state. Stopped Reason is: Unexpected EC2 error while attempting to tag the network interface: InvalidParameterValue

arn:aws:iam::aws:policy/aws-service-role/AmazonECSServiceRolePolicy contains CreateTag permission.

guidance service-api

Most helpful comment

@byF

The service team has indicated that this issue has been resolved.

All 20 comments

@byF

Thanks for opening this issue.

That error is returned by the ECS service and not the SDK itself. Have you raised the issue with the ECS Service Team?

Have you referred to this documentation? Tagging Your Amazon EC2 Resources

@srchase Nope, I have not raised it with them yet. This is the relevant documentation:https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-using-tags.html; there is nothing apparent to me (my IAM user is enrolled into new ARN format for ECS)

Anyhow, where should I move this issue?

The Amazon ECS Developer Forum is the best place to post this kind of question.

Have you tried using the AWS CLI run-task command?

Nope, but I've just did the same config through the web console and it fails as well.

Thanks, I'm going to ask on that forum.

For anyone who might be looking for this - I contacted AWS Premium Support, this is an internal AWS bug which they are aware of.

@byF

Appreciate you following up on this issue!

So what is the bug? I'm also hitting this issue - do you have a URL or incident# for reference?

Suffering same issue

@j1mb0jay and @Gr1mR3aver,

The Amazon ECS Developer Forum is the best place to engage the ECS team.

Have either one of you posted a question there?

Suffering the same issue

Same here, is there a workaround?

I'm experiencing the same issue, but not via the SDK - I'm getting the problem via the console. Additionally, @srchase, I cannot post the question in said forum because their forum is not allowing me to do so.

This issue is being worked on by the ECS and EC2 Service Teams. Once it is resolved, I will update this issue.

Thanks @srchase

Same issue here too

Same issue as well

I could solve the problem by opting out from the new ARN and resource id format:

grafik

Clicking on "Configure ECS ARN setting" and disabling all checkboxes solved the problem for me.

I'm also opted into the new ARN and resource format. I was able to work round the issue in the GUI by unselecting "Enable ECS managed tags"

@byF

The service team has indicated that this issue has been resolved.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

Was this page helpful?
0 / 5 - 0 ratings