エンジニアとしての市場価値を測りませんか?PR

企業からあなたに合ったオリジナルのスカウトを受け取って、市場価値を測りましょう

0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

circleci/aws-ecr@7.0.0で Job was rejected because resource class medium, image ubuntu-2004:202010-01 is not a valid resource class エラーが出た場合の対応

Last updated at Posted at 2025-01-14

背景

circleci/aws-ecr@7.0.0のbuild-and-push-imagesジョブで、Job was rejected because resource class medium, image ubuntu-2004:202010-01 is not a valid resource classというエラーが発生した。

build-and-push.png

対策

aws-ecrのバージョンを上げた。
それに伴って.ymlファイルの構造も一部変わるので、その点も修正が必要。

.circleci/config.yml
-  aws-ecr: circleci/aws-ecr@7.0.0
+  aws-ecr: circleci/aws-ecr@9.3.7
+  aws-cli: circleci/aws-cli@5.1.2


workflows:
  version: 2
  build-and-test:
    jobs:
      - build
      - test:
          requires:
            - build
-     - aws-ecr/build-and-push-image:
+     - aws-ecr/build_and_push_image:
          requires:
            - test
-         account-url: AWS_ECR_ACCOUNT_URL
+         auth:
+           - aws-cli/setup:
+             region: ap-northeast-1
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?