amplify-cli icon indicating copy to clipboard operation
amplify-cli copied to clipboard

Lambda trigger creation error

Open mnikolic10 opened this issue 3 years ago • 0 comments

I'm attempting to create a new Lambda trigger for my DynamoDB model. I had one created previously that was working fine, which I disabled and enabled again manually in the DynamoDB interface. I have been unable to create a new function since and get the below errors:

Resource Name: LambdaEventSourceMappingRestaurant (AWS::Lambda::EventSourceMapping) Event Type: create Reason: Resource handler returned message: "Invalid request provided: Stream not found: arn:aws:dynamodb:ap-southeast-2:517071956428:table/Restaurant-5fferu2ehrhfpg3jxrx6olz5cy-dev/stream/2022-05-31T09:36:50.612 (Service: Lambda, Status Code: 400, Request ID: e89088c7-ab4c-469d-9ee1-84447fb588d0)" (RequestToken: 09cfa484-5827-2108-842a-228a043f2fbc, HandlerErrorCode: InvalidRequest)

Not sure if I have made some mistake by manually deleting rather than using the CLI. Please let me know if you need more detail.

NOTE: I can see in my DynamoDB interface that streams is enabled:

Screen Shot 2022-12-18 at 9 52 49 pm

mnikolic10 avatar Dec 18 '22 10:12 mnikolic10