The S3 bucket hosting the java buildpack dependency builder is not working properly and the script on the github does not work, the customers get access denied when lisiting the objects in the bucket.
It happens on all environments.
The S3 bucket is no longer available and the R&D team is looking to change it to a new bucket.
A new pull request to the github have been sent by the R&D team with a new S3 bucket, customers shouldn't see this issue anymore.
Another solution is modifying the script and adding the following S3 bucket:
aws s3 ls s3://java-buildpack.cloudfoundry.org/openjdk/jammy/x86_64 --no-sign-request