【问题标题】:Chalice deploy for S3 event throwing an error用于 S3 事件的圣杯部署引发错误
【发布时间】:2021-11-03 11:58:10
【问题描述】:

s3-event 源项目在部署时抛出错误

chalice new-project
s3-event-source

chalice deploy

错误:

chalice.deploy.deployer.ChaliceDeploymentError: ERROR - While deploying your chalice application, received the following error:

 An error occurred (InvalidArgument) when calling the 
 PutBucketNotificationConfiguration operation: The notification destination 
 service region is not valid for the bucket location constraint

【问题讨论】:

    标签: amazon-web-services amazon-s3 chalice


    【解决方案1】:

    将 chalice 应用部署到您创建 s3 存储桶的同一区域。

    如果您的 s3 存储桶位于爱尔兰 (eu-west-1),请在您的 CLI 中运行:

    export AWS_DEFAULT_REGION=eu-west-1
    

    根据您的 s3 存储桶更改区域。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-04-16
      • 1970-01-01
      • 1970-01-01
      • 2016-01-13
      • 2011-11-03
      • 1970-01-01
      • 2011-02-01
      • 2017-03-11
      相关资源
      最近更新 更多