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

use*_*578 4 amazon-s3 amazon-web-services jenkins amazon-elastic-beanstalk

我正在尝试将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
Run Code Online (Sandbox Code Playgroud)

更多错误显示

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:
Run Code Online (Sandbox Code Playgroud)

Jenkins配置弹性豆茎

My beanstalk is in "ap-southeast-2" region  
Bucket name is "elasticbeanstalk-ap-southeast-1-779583297123"
Run Code Online (Sandbox Code Playgroud)

您可以查看此内容以获得更清晰的信息

在此输入图像描述

Tal*_*Tal 6

看起来像Beanstalk和S3桶在不同的地区.你说Beanstalk位于东南2,而S3桶似乎位于东南1.在ap-southeast-2中创建该存储桶.