I am unable to understand what mistake I am doing. Please look at this and help.
I have chosen Linux family operating system in task definiton. Getting this error. Please take a look into below screenshots.
This is the cloud watch error I am getting when I run the task definition in ECS fargate cluster.
This is the Dockerfile in the springboot project. I am running
2
Answers
Previously, I was getting this error bcz in Code Build pipeline I chose Operating System as Amazon Linux 2, Run time as Standard. Image as aws/codebuild/amazonlinux2-aarch64-standard:3.0
How I resolved this issue. Very interesting, just did trial and error by selecting the images one by one and build the image.
Ultimately for image "aws/codebuild/amazonlinux2-x86_64-standard:5.0" . It actually worked.
For more information visit this aws documentation: https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-available.html
You are doing one of two things:
In either case, the CPU architecture of your build machine does not match the CPU architecture of your deployment environment.