aws Unknown runtime version named 'openjdk8' of java. This build image has the following versions: corretto11, corretto8

I am trying to deploy my java application to aws EBS using codecommit

but I am faced with this error

YAML_FILE_ERROR Message: Unknown runtime version named 'openjdk8' of java. This build image has the following versions: corretto11, corretto8

I am using ubuntu with codebuild standard:4.0

my runtime version in my buildspec is openjdk8

>Solution :

I don’t see OpenJDK listed as a supported runtime for Elastic Beanstalk here. You need to change your settings to specify corretto8.

Leave a Reply