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.

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.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인