我正在尝试将war文件从jenkins部署到弹性bean stalk,构建成功,但是当它尝试上传到s3时,它显示此错误
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
进一步的错误显示
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配置弹性豆茎
My beanstalk is in "ap-southeast-2" region
Bucket name is "elasticbeanstalk-ap-southeast-1-779583297123"
您可以查看此内容以获得更清晰
答案 0 :(得分:6)
看起来Beanstalk和S3存储桶位于不同的区域。你说Beanstalk位于东南2,而S3桶似乎位于东南1。在ap-southeast-2中创建该桶。