首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >AWS Codebuild - UPLOAD_ARTIFACTS阶段错误: BucketRegionError:区域不正确,存储桶不在终结点处的‘us-UPLOAD_ARTIFACTS-2’区域中

AWS Codebuild - UPLOAD_ARTIFACTS阶段错误: BucketRegionError:区域不正确,存储桶不在终结点处的‘us-UPLOAD_ARTIFACTS-2’区域中
EN

Stack Overflow用户
提问于 2021-11-09 12:37:38
回答 1查看 71关注 0票数 0

我正在尝试创建工件,并使用俄亥俄州的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中?

代码语言:javascript
复制
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
EN

回答 1

Stack Overflow用户

发布于 2021-11-09 13:38:22

将工件输出到俄亥俄区域一次,然后在目标S3存储桶(俄亥俄区域)和北加州区域的S3存储桶之间进行跨区域复制如何?

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/69898278

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档