Coder Social home page Coder Social logo

Comments (2)

tianchu avatar tianchu commented on July 27, 2024 1

Hi @hc-danieltiziani,

Since version 3.0.0, the forwarder can be updated through CloudFormation "Update", which only modifies certain resources (e.g., the function code) and does not recreate the lambda.

Updating from an older version to +3.0.0 does requires a little bit effort, , but the good news is that once you get there, future updates will be "one-click" without interruption. In fact, we migrated from SAM/SAR to CloudFormation to solve this exact problem (customers used to have recreate the lambda to update and manually copy over environment variables).

If you would like to keep the forwarder Lambda's ARN same as the old one, you can set the FunctionName parameter (available in CFN stack configuration UI) to reuse the existing forwarder's name. I recommend you follow these steps:

  1. deploy the forwarder with a different name
  2. migrate a few log subscriptions to it and test throughly
  3. export the old forwarder as a backup (just in case)
  4. delete the old forwarder
  5. update the existing CloudFormation stack and set FunctionName to the old forwarder's name

Does this answer your question? If I misunderstood your question, do you mind share extra context and specific requirements with us?

from datadog-serverless-functions.

hc-danieltiziani avatar hc-danieltiziani commented on July 27, 2024

Hi @tianchu , it answers completely, thanks for the info.
If there is a way to update only the code with 3.0.0+ then it won't affect us at all, unless it has to destroy the lambda, so it's fine!

Thanks for the quick response! Closing issue.

from datadog-serverless-functions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.