为 S3 事件抛出错误的圣杯部署
Chalice deploy for S3 event throwing an error
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
将 chalice 应用程序部署到您创建 s3 存储桶的同一区域。
如果您的 s3 存储桶位于爱尔兰 (eu-west-1) 运行,在您的 CLI 中:
export AWS_DEFAULT_REGION=eu-west-1
根据您的 s3 存储桶更改区域。
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
将 chalice 应用程序部署到您创建 s3 存储桶的同一区域。
如果您的 s3 存储桶位于爱尔兰 (eu-west-1) 运行,在您的 CLI 中:
export AWS_DEFAULT_REGION=eu-west-1
根据您的 s3 存储桶更改区域。