Closed lesnitsky closed 2 years ago
Thanks for reporting, closing this as a known bug: https://github.com/milliHQ/terraform-aws-next-js/issues/138#issuecomment-864454823
Has something to do that we connect SQS and S3 triggers to the same Lambda which causes some race condition on AWS side. This will be resolved once we ditch SQS for the invalidation queue.
Sometimes I get this error after terraform apply:
I wasn't able to figure out the conditions under which this error occurs.