aws_lambda_event_source_mapping.: Still creating…

Context :

Architecture: “split-data “ lambda listening to “split-data-input-bus” SQS.

Problem:

When I apply my terraform plan to deploy my infrastructure, the terraform client returns the same message “aws_lambda_event_source_mapping: Still creating” for 5 minutes before ending with an error.

Solution:

The problem may have several causes. To get more information about what is going on in the terraform backend we can make it more verbose by setting the environment variable TF_LOG to an arbitrary value. TF_LOG=true for example.

Then the issue will appear to you quickly. For me, the lambda was not allowed to receive sqs message. To overcome the problem I added the lambda as a principal for the sqs policy and I added a receive message action.

Hope it helped

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

BingStar — A Movie Search Web Application.

Unity for the win, on Bitrise too!

How to setup a TableView in 2019 (Obj-C)

Continuous Delivery vs. Continuous Deployment: Where to draw the line?

Happy Birthday Optimizely’s QA Team

#quoteoftheday https://t.co/Bej7RXo1LR

My reflections on Agile Extreme Programming(XP)

My First Selenium Test | Ruby

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Remy NTSHAYKOLO

Remy NTSHAYKOLO

More from Medium

Runway 34 — A Production Incident Post-Mortem

Dependency Management for Packages that aren’t Packages

Why LocalHost?

How to install Nexus Repository Manager 3 as a Service on AWS EC2 Instance