简体   繁体   English

为 S3 事件部署 Chalice 引发错误

[英]Chalice deploy for S3 event throwing an error

The s3-event source project throwing an error while deploying s3-event源项目在部署时抛出错误

chalice new-project
s3-event-source

chalice deploy

Error:错误:

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

Deploy the chalice app to the same region you created the s3 bucket.将 chalice 应用程序部署到您创建 s3 存储桶的同一区域。

If your s3 bucket is in Ireland (eu-west-1) run in your CLI:如果您的 s3 存储桶位于爱尔兰 (eu-west-1),请在您的 CLI 中运行:

export AWS_DEFAULT_REGION=eu-west-1

Change the region accordingly to your s3 bucket.根据您的 s3 存储桶相应地更改区域。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM