I am trying to run java 11 on an elastic beanstalk environment. I found Java 11 on AWS beanstalk for Spring boot project which looks like what I want.
When I create the config file like in that question I get
Error processing file (Skipping): '.ebextensions/10_Java.config' - Contains invalid key: '200-download-rpm-package'. For information about valid keys, see http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/ebextensions.html
My yaml file is a copy of the one in the answer to the question above.
container_commands:
100-remove-old-java-ajb:
command: "sudo yum remove -y java-1.8.0-openjdk-headless"
200-download-rpm-package:
command: "wget https://d3pxv6yz143wms.cloudfront.net/11.0.4.11.1/java-11-amazon-corretto-devel-11.0.4.11-1.x86_64.rpm "
300-install-java-ajb:
command: "sudo yum localinstall -y java-11-amazon-corretto-devel-11.0.4.11-1.x86_64.rpm"
But when I look in the doc page linked, there nothing about the naming rules for labels that I might be violating. What am I getting wrong?