Git Product home page Git Product logo

Comments (6)

lightsofapollo avatar lightsofapollo commented on July 30, 2024 1

@cbaron Let's re-evaluate passing env to lambda. Seems like it's useful.

from aws-utils.

lightsofapollo avatar lightsofapollo commented on July 30, 2024

Good question! It should given we use serverless directly to parse the config but if it's not working for you then clearly we need to fix something. Does using an absolute path work? What is the error?

from aws-utils.

SET001 avatar SET001 commented on July 30, 2024

I use file inclusion to include environment variables and then use in from my lambdas. In lambda they available under process.env but when I use it with emulator all they are undefined so I suppose that file inclusion format may be not supported by emulator or I'm missing something...

Does using an absolute path work?

the same in this case:

environment: ${file(env.yml):${self:provider.stage}}`

and in case with absolutely absolute path. The only content of process.env is

{ DYNAMODB_ENDPOINT: 'http://localhost:62224/' }

from aws-utils.

SET001 avatar SET001 commented on July 30, 2024

as far as I see now, the problem is not in yml file inclusion, but it is in not passing values from provider.environment to lambda's process.env.

from aws-utils.

SET001 avatar SET001 commented on July 30, 2024

any updates on this? do you plan to implement this?

from aws-utils.

cbaron avatar cbaron commented on July 30, 2024

I will try to carve out some time this week. As always, you're welcome to put up a PR.

from aws-utils.

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.