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 Answers
0

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

Jason_S
answered 2 years ago
  • 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
answered 2 years ago
  • 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
answered 2 years ago
  • 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.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions