File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -268,6 +268,15 @@ So issues that exist on Vercel are likely to occur on this project too.
268
268
After running the initial ` terraform destroy ` command (that failed) wait ~ 1 hour and run the command again.
269
269
This time it should run successfully and delete the rest of the stack.
270
270
271
+ - Initial apply fails with error message ` Error: error creating Lambda Event Source Mapping ` ([ #138 ] ( https://github.com/dealmore/terraform-aws-next-js/issues/138 ) )
272
+
273
+ There is some race condition when the permissions are created for the static deployment Lambda.
274
+ This should only happen on the first deployment.
275
+
276
+ ** Workaround:**
277
+
278
+ You should be able to run` terraform apply ` again and the stack creation would progreed without this error.
279
+
271
280
## License
272
281
273
282
Apache-2.0 - see [ LICENSE] ( ./LICENSE ) for details.
Original file line number Diff line number Diff line change @@ -199,10 +199,9 @@ module "deploy_trigger" {
199
199
service = " s3"
200
200
source_arn = aws_s3_bucket.static_upload.arn
201
201
}
202
- # TODO: Check if we need this
203
202
InvalidationQueue = {
204
- service = " sqs"
205
- source_arn = aws_sqs_queue .this.arn
203
+ principal = " sqs.amazonaws.com "
204
+ source_arn = aws_sns_topic .this.arn
206
205
},
207
206
}
208
207
You can’t perform that action at this time.
0 commit comments