我正在尝试创建工件,并使用俄亥俄州的codebuild项目将其上传到北加州的s3存储桶。但是,构建的最后阶段失败,并显示错误消息"Error in UPLOAD_ARTIFACTS phase: BucketRegionError: in,the bucket is not in‘us-UPLOAD_ARTIFACTS-2’region at the“。下面我已经提到了buildspec文件。创建Codebuild项目以从代码提交中选取buildspec文件。请问如何将俄亥俄地域的codebuild项目创建的工件添加到北加州地域的s3 bucket中?
version: 0.2
phases:
install:
runtime-versions:
python: 3.7
pre_build:
commands:
- pip install --upgrade pip
- pip install cfn-lint
build:
commands:
- echo Build started on `date`
- cd ./folder
- aws cloudformation package --template-file testing.yml --output-template-file testing-packaged-cf.yml --s3-bucket codepipeline-test-bucket --region us-west-1
- echo $PWD
post_build:
commands:
- echo Build completed on `date`
- echo $PWD
artifacts:
files:
- testing-packaged-cf.yml
base-directory: $PWD发布于 2021-11-09 13:38:22
将工件输出到俄亥俄区域一次,然后在目标S3存储桶(俄亥俄区域)和北加州区域的S3存储桶之间进行跨区域复制如何?
https://stackoverflow.com/questions/69898278
复制相似问题