从jenkins上载到s3时,必须使用指定的端点对您尝试访问的存储桶进行寻址

cwxwcias  于 2023-03-01  发布在  Jenkins
关注(0)|答案(1)|浏览(174)

我尝试将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"

您可以查看此内容以了解更多信息
enter image description here

jfgube3f

jfgube3f1#

  • Beanstalk* 和 S3 存储桶似乎位于不同的区域。您声明 Beanstalk 位于ap-southeast-2中,而 S3 存储桶似乎位于ap-southeast-1中。请在ap-southeast-2中创建该存储桶。

相关问题