The bucket you are attempting to access must be addressed using the specified endpoint , while uploading from jenkins to s3

只谈情不闲聊 提交于 2020-01-21 12:13:09

问题


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:


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.



来源:https://stackoverflow.com/questions/34156963/the-bucket-you-are-attempting-to-access-must-be-addressed-using-the-specified-en

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!