aws_lambda_event_source_mapping.: Still creating…

Remy NTSHAYKOLO
Jan 28, 2021

--

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

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response