小编典典

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

jenkins

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

您可以看一下以更清楚

在此处输入图片说明


阅读 685

收藏
2020-07-25

共1个答案

小编典典

看起来Beanstalk和S3存储桶位于不同的区域。您说过Beanstalk位于ap-southeast-2中,而S3存储桶似乎位于ap-
southeast-1中。在ap-southeast-2中创建该存储桶。

2020-07-25