0

The s3-event source project throwing an error while deploying

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
jarmod
  • 71,565
  • 16
  • 115
  • 122
Thirumal
  • 8,280
  • 11
  • 53
  • 103

1 Answers1

1

Deploy the chalice app to the same region you created the s3 bucket.

If your s3 bucket is in Ireland (eu-west-1) run in your CLI:

export AWS_DEFAULT_REGION=eu-west-1

Change the region accordingly to your s3 bucket.

albert
  • 4,290
  • 1
  • 21
  • 42