CodePipeline with ECS Fargate using Graviton2 is failing

1

I migrated my ECS Fargate workloads to Graviton2, however when I am using CodePipeline to release new code, it removes

"runtimePlatform": {
        "operatingSystemFamily": "LINUX",
        "cpuArchitecture": "ARM64"
    }, 

from the task definition and then the task fails due to architecture mismatch. I am using Amazon ECS as the deploy provider, so it only suppose to update the imageUri in the task definition. If I manually add the removed part, it works just fine.

  • Hi Mark,

    We are also experiencing the same issue, I have raised a support ticket with AWS as there seems to be no way to keep the runtimePlatform when deploying.

mark
已提问 2 年前543 查看次数
3 回答
0

Have you modified your CI to build multi-architecture images as highlighted in this blog post?

Jason_S
已回答 2 年前
  • Hi Jason, I don't want multi-architecture containers, because it would mean 18 builds for a single application. My problem is that CodeDeploy is changing the task definition. My builds are fine.

0

Hi Mark,

Received this from AWS Support!

I just received an update from the CodePipeline service team. They mentioned that this is a known issue. The service team are busy working on a fix for this issue. I will be monitoring the ticket for an update and as soon as I receive an update, I will communicate the details with you. For now, I will be placing this case in the "Pending Amazon Action" state.

Hopefully it won't be long for a fix, have a good day.

Ben

ben
已回答 2 年前
  • Hi Ben, Has it been fixed yet? Cheers, Mark

0

Hey, As the fails message says, you have mismatch configuration in your cpu Arch, look at your configuration files if everything is in order. Based on this aws doc, runtime is not required. Sometimes, providing this will trigger further checks and fails.

AWS
Zmnako
已回答 2 年前
  • If I remove runtime then it will not use arm processors. If I change the imageUri manually (as Codedeploy suppose to do) it works fine.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则