lambda-secrets-prefetch | Lambda extension to pre-fetch secrets | Cloud Functions library

 by   square Go Version: Current License: Apache-2.0

kandi X-RAY | lambda-secrets-prefetch Summary

kandi X-RAY | lambda-secrets-prefetch Summary

lambda-secrets-prefetch is a Go library typically used in Serverless, Cloud Functions applications. lambda-secrets-prefetch has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

Lambda extension to pre-fetch secrets from AWS SecretsManager. This tool is discussed in detail in our blog post.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              lambda-secrets-prefetch has a low active ecosystem.
              It has 54 star(s) with 2 fork(s). There are 6 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              lambda-secrets-prefetch has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of lambda-secrets-prefetch is current.

            kandi-Quality Quality

              lambda-secrets-prefetch has 0 bugs and 0 code smells.

            kandi-Security Security

              lambda-secrets-prefetch has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              lambda-secrets-prefetch code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              lambda-secrets-prefetch is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              lambda-secrets-prefetch releases are not available. You will need to build from source code and install.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed lambda-secrets-prefetch and discovered the below as its top functions. This is intended to give you an instant insight into lambda-secrets-prefetch implemented functionality, and help decide if they suit your requirements.
            • register creates a new event id
            • populateSecrets populates the secrets manager for secrets manager
            • next runs the next identifier
            • getConfig loads a config file
            • getSecret retrieves a secret from an existing secret
            • Main entry point
            • putSecret writes the secret to the target directory
            • SetLogLevelFromEnv sets the log level from environment
            • handleSecret is used to fetch a secret
            • New returns a new AWSSecrets client
            Get all kandi verified functions for this library.

            lambda-secrets-prefetch Key Features

            No Key Features are available at this moment for lambda-secrets-prefetch.

            lambda-secrets-prefetch Examples and Code Snippets

            No Code Snippets are available at this moment for lambda-secrets-prefetch.

            Community Discussions

            Trending Discussions on lambda-secrets-prefetch

            QUESTION

            Are lambda extensions shared across multiple instances of a lambda?
            Asked 2022-Jan-19 at 08:29

            I'm trying to improve the cold start performance of a lambda. One of the things that takes time at startup is fetching information from the secrets manager.

            I've found a few solutions that talk about caching information from secrets manager using lambda extensions.

            1. https://docs.aws.amazon.com/prescriptive-guidance/latest/patterns/cache-secrets-using-aws-lambda-extensions.html
            2. https://github.com/square/lambda-secrets-prefetch
            3. https://github.com/hariohmprasath/aws-lambda-extensions

            If you cached a request from secrets manager, using the lambda extension approach, is it cached only for that instance of the lambda or is it cached for all instances of the lambda?

            If it's cached for all instances then in theory it would help me reduce cold start times.

            ...

            ANSWER

            Answered 2022-Jan-19 at 08:29

            Unfortunately, it is cached only for that instance of the lambda.

            Extensions are running inside the same container with the lambda. Therefore, they will not share memory between different instances of the lambda. More specifically, every time that a lambda has a cold start - a fresh process of the extensions is being executed.

            Disclaimer: I just published a post explaining more about extensions: https://aws.amazon.com/blogs/apn/zero-friction-aws-lambda-instrumentation-a-practical-guide-to-extensions/ I believe that it will help you understand more about that power of extensions, and how it can help you in other ways.

            Source https://stackoverflow.com/questions/70289345

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install lambda-secrets-prefetch

            We have put together a Makefile that will build and deploy the extension into your account with an example lambda that prints stored secrets. Before running any commands, ensure AWS_PROFILE and AWS_REGION are set in your terminal, and you have replaced the variables at the top of Makefile. Make sure the role specified for EXECUTION_ROLE is an existing IAM role that has read access to the secrets which you specify to access.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/square/lambda-secrets-prefetch.git

          • CLI

            gh repo clone square/lambda-secrets-prefetch

          • sshUrl

            git@github.com:square/lambda-secrets-prefetch.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Cloud Functions Libraries

            Try Top Libraries by square

            okhttp

            by squareKotlin

            retrofit

            by squareJava

            leakcanary

            by squareKotlin

            picasso

            by squareKotlin

            javapoet

            by squareJava