Open justinmakaila opened 3 days ago
Hey @justinmakaila, thank you for reaching out. Tried reproducing the error using the code snippet provided but was not able to run into the error. Did notice the packages are bit out of date, could you try upgrading them and let us know if this mitigates the issue. If you do have a repository with a minimal reproduction would help us in diving into this as well
@ykethan i will give it a shot this weekend or early next week. Will try to build a reproducible example
Environment information
Describe the bug
I'm attempting to add DDB triggers to my amplify backend. I have the following backend definition:
This works fine on a fresh deploy, but if I attempt to deploy over existing resources, I get an issue saying:
it seems to have to do with the stream ARNs... the timestamp that my deploy/CF template is assuming is
stream/2024-10-01T15:42:39.380
but the actual ARN on my table isstream/2024-10-01T15:55:59.319
.Reproduction steps
Deploy a DDB table using the
defineBackend
method.After successful deploy, use the code above to add the stream policy to a defined/deployed lambda and
EventSourceMapping
for the table using the lambda.You should see the error listed above during attempted deploy and a clear mismatch between the enabled stream ARN on the existing table vs the one the mapping is trying to reference.