Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Has anyone used this plugin with serverless-step-functions? It doesn't work for me #36

Open
vayias opened this issue Jul 6, 2018 · 0 comments

Comments

@vayias
Copy link

vayias commented Jul 6, 2018

First of all, great plugin, great work!

I was wondering if anyone managed to get this working while using the serverless-step-functions plugin.

I'm using both those plugins and unfortunately it doesn't work, so i was wondering if anyone else ran into the same issues.

What i've done:
I created an SQS queue through aws. In serverless I'm giving the permissions to my lambdas to access the SQS queue
by doing:

    - Effect: "Allow"
      Action:
        - "sqs:*"
      Resource: "arn:aws:sqs:#{AWS::Region}:xxxxxxxxx:my_deadletter"

Then, in the functions section i'm doing:

functions:
  prepareDynamo:
    handler: functions/my_lambda.lambda_handler
    timeout: 5
    deadLetter:
      targetArn: arn:aws:sqs:us-east-1:xxxxxxxxx:my_deadletter

Then, purposefully, i'm throwing an error in my_lambda function and I'm invoking the lambda asynchronously (I publish a message to SNS and then the sns invokes the lambda).

My lambda function then fails on aws, but then nothing gets enqueued in sqs. By going to aws page and checking my lambda function, i can see that the deadletter queue is correctly defined there, and it has the right permissions.

Any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant