aws-samples / amazon-rekognition-video-analyzer

A working prototype for capturing frames off of a live MJPEG video stream, identifying objects in near real-time using deep learning, and triggering actions based on an objects watch list.
Other
367 stars 157 forks source link

deploylambda build script fails if region is "us-east-1" and S3 bucket doesn't exist #1

Closed moanany closed 7 years ago

moanany commented 7 years ago

If the S3 bucket used as a deployment target does not exist, the deploylambda build script attempts to create it by calling the create_bucket() Boto3 API specifying a LocationConstraint set to the region name of the current AWS CLI profile.

Boto3 generates an InvalidLocationConstraint exception if the region specified as an argument is us-east-1 (see https://github.com/boto/boto3/issues/125).

Issue originally reported by Jenil Shah as a comment on the blog post:

https://aws.amazon.com/blogs/ai/create-a-serverless-solution-for-video-frame-analysis-and-alerting/

ghost commented 6 years ago

I am still getting the below error while doing the deploylambda - botocore.exceptions.ParamValidationError: Parameter validation failed: Invalid bucket name "": Bucket name must match the regex "^[a-zA-Z0-9.-_]{1,255}$"

What am I supposed to update here

moanany commented 6 years ago

It seems like a bucket name parameter is set to an empty string in config/cfn-params.json. The parameters reference in the docs explains each parameter. Did you check there?

ghost commented 6 years ago

Yeah that was fine. I named s3_bucket, SourceS3BucketParameter, FrameS3BucketNameParameter all the three with same existing bucket and deploylambda was success.