AWS Corretto sample application S3Key

1

0

Would anyone now what is the S3Key for corretto.zip sample app? For S3Key property I've tried corretto-newsample-app.zip and corretto.zip but I get a 400 error in Cloud Formation.

Unable to download from S3 location (Bucket: elasticbeanstalk-samples-eu-west-1 Key: corretto-newsample-app.zip). Reason: Forbidden: S3Bucket=elasticbeanstalk-samples-eu-west-1, S3Key=corretto-newsample-app.zip (Service: AWSElasticBeanstalk; Status Code: 400; Error Code: InvalidParameterCombination; 

If I use the PHP sample app from the AWS example (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-elasticbeanstalk.html) php-newsample-app.zip it works fine and I can successfully start an EB environment with a Cloud Formation template, but I would like to use a Java sample app.

질문됨 2년 전229회 조회
1개 답변
0
수락된 답변

Please try with java-sample-app.zip in S3Key for Java App.

profile pictureAWS
답변함 2년 전
profile picture
전문가
검토됨 한 달 전
  • That worked, thank you! I was so close - I also tried java-newsample-app.zip :D

  • @Ashish_P Could you tell us how to find out the correct name for any sample app? For example, I tried doing the same with the Python sample app, but python.zip, python-sample-app.zip, and python-newsample-app.zip failed. For python-sample.zip the stack creation did succeed, but the sample app itself crashed on the ec2 instance (maybe an old version of the app?). Also tried e.g. listing the bucket contents from an ec2 instance via ssh, but got access denied.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠