Unknown runtime version named ‘corretto17’ of java. This build image has the following versions: corretto11, corretto8

AWS

buildspec.yml で corretto17 を指定したときのエラーです。

Waiting for agent ping
Waiting for DOWNLOAD_SOURCE
Phase is DOWNLOAD_SOURCE
CODEBUILD_SRC_DIR=/codebuild/output/src774474535/src
YAML location is /codebuild/output/src774474535/src/buildspec.yml
Setting HTTP client timeout to higher timeout for S3 source
Processing environment variables
Selecting 'java' runtime version 'corretto17' based on manual selections...
Phase complete: DOWNLOAD_SOURCE State: FAILED
Phase context status code: YAML_FILE_ERROR Message: Unknown runtime version named 'corretto17' of java. This build image has the following versions: corretto11, corretto8

ビルドプロジェクト→ビルドの詳細→環境のイメージを「Amazon Linux 2 x86_64 standard:4.0」にするとビルドが成功しました。

ビルドプロジェクトの設定の変更 (コンソール)
https://docs.aws.amazon.com/ja_jp/codebuild/latest/userguide/change-project-console.html

CodeBuildで使用可能なランタイム
https://docs.aws.amazon.com/ja_jp/codebuild/latest/userguide/available-runtimes.html

コメント

タイトルとURLをコピーしました