question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AWS Lambda Destination

See original GitHub issue

AWS Lambda Destination

Description

AWS Lambda Destinations for asynchronous invocations. This is a feature that provides visibility into Lambda function invocations and routes the execution results to AWS services, simplifying event-driven applications and reducing code complexity.

I have already simply tried to add a cloudformation resource:

functions:
  hello:
    handler: src/hello.handler
    events:
      - sqs:
          batchSize: 1
          arn: ${arn}

resources: # CloudFormation template syntax
  Resources:
    HelloLambdaFunction:
      Type: AWS::Lambda::EventInvokeConfig
      Properties:
          FunctionName: "hello"
          Qualifier: "$LATEST"
          MaximumEventAgeInSeconds: 600
          MaximumRetryAttempts: 0
          DestinationConfig:
              OnSuccess:
                  Destination: ${arn}
              OnFailure:
                  Destination: ${arn}

But i got this error: Update of resource type is not permitted. The new template modifies resource type of the following resources: [HelloLambdaFunction]

Yours sincerely.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

11reactions
medikoocommented, Nov 26, 2019

@bluebeel as I see problem is, that you named your AWS::Lambda::EventInvokeConfig resource same as AWS::Lambda::Function resource is named. Ensure to name it differently.

Anyway, Framework will shortly support AWS Lambda Destination out of a box.

9reactions
vladgolubevcommented, Dec 17, 2019

Looks like CloudFormation support just landed: https://aws.amazon.com/about-aws/whats-new/2019/12/aws-cloudformation-updates-for-api-gateway-codepipeline-s3-iam-ecs-rds-es-lambda-and-more/

Configure destinations and error handling for asynchronous invocation in AWS Lambda.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Introducing AWS Lambda Destinations | AWS Compute Blog
AWS Lambda Destinations gives you more visibility and control of function execution results. This helps you build better event-driven ...
Read more >
Lambda Destinations can improve success- and error ...
Lambda Destinations allow you to specify what to do if an asynchronous invocation succeeds or fails. You can pass on the information to...
Read more >
AWS Lambda Destination to SQS for Asynchronous ...
Lambda can define Destination when invoke async way. By this feature, Lambda simplifying event-driven applications and reducing code complexity. We can set ...
Read more >
AWS Lambda Destination Support - Serverless Framework
Essentially, destinations are the ability for asynchronous Lambda invocations to have their execution results sent to other AWS services without ...
Read more >
What is AWS Lambda Destinations? - YouTube
In this aws lambda tutorial video you will learn the basics of aws lambda, its architecture and a use case. You will also...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found