The bucket you are attempting to access must be ad

2019-02-24 02:40发布

i am trying to deploy the war file from jenkins to elastic bean stalk, the build is successful , but when it tries to upload to s3 , it is showing this error

Uploading file awseb-2152283815930847266.zip as s3://elasticbeanstalk-ap-southeast-1-779583297123/jenkins/My App-jenkins-Continuous-Delivery-
MyApp-Stage-promotion-Deploy-14.zip
Cleaning up temporary file /tmp/awseb-2152283815930847266.zip
FATAL: Deployment Failure
java.io.IOException: Deployment Failure

further error shows

The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint. 
(Service: Amazon S3; Status Code: 301; Error Code:

Jenkins configuration for elastic beanstalk

My beanstalk is in "ap-southeast-2" region  
Bucket name is "elasticbeanstalk-ap-southeast-1-779583297123"

You can have a look at this for more clarity

enter image description here

1条回答
Anthone
2楼-- · 2019-02-24 03:36

Looks like Beanstalk and the S3 bucket are in different regions. You stated that Beanstalk is in ap-southeast-2, while it seems that the S3 bucket is in ap-southeast-1. Create that bucket in ap-southeast-2.

查看更多
登录 后发表回答