Giter VIP home page Giter VIP logo

Comments (8)

jimjkelly avatar jimjkelly commented on August 25, 2024

Hmm, definitely a bug. Two work around while I work on a fix:

One, put your lambda or lambdas in a separate directory and point the tool at that:

current_directory
  |- .env
  |- lambdas
      |- your_lambda_dir

Then in current_directory, run lambda_deploy like so:

$ lambda-deploy -d lambdas deploy

The other option, especially if you only have one to upload, is to specify the lambda:

$ lambda-deploy deploy your_lambda_dir

from lambda-deploy.

jimjkelly avatar jimjkelly commented on August 25, 2024

Also - I'm definitely interested to hear about your experiences on Windows - I haven't tested this there at all so I'd like to hear if it works.

from lambda-deploy.

m0ngr31 avatar m0ngr31 commented on August 25, 2024

Yeah, I tried that after I wrote the issue and it seemed to work.

Once I figured out how to use yaep to use the environment variables, this turned into a pretty great way to deploy to lambda, glad I found the project! Now I can't wait to get a version where I can have it in the same directory.

from lambda-deploy.

jimjkelly avatar jimjkelly commented on August 25, 2024

Should be a 0.0.2 version up now - let me know if this fixes the problem, thanks!

from lambda-deploy.

m0ngr31 avatar m0ngr31 commented on August 25, 2024

It seems to fix the issue, but it just stops what it's doing:

$ lambda-deploy deploy
2016-04-18 14:32:21:INFO:botocore.credentials: Found credentials in environment variables.

Doesn't upgrade or anything.

from lambda-deploy.

jimjkelly avatar jimjkelly commented on August 25, 2024

So you have a layout like:

current_directory (where you run lambda-deploy from)
  | - .env
  | - your_lambda_directory

?

Or are you trying to upload from inside "your_lambda_directory"?

from lambda-deploy.

m0ngr31 avatar m0ngr31 commented on August 25, 2024

Trying to do it inside of the lambda directory if that's possible

from lambda-deploy.

jimjkelly avatar jimjkelly commented on August 25, 2024

Hmm. I'll have to give some though to that, I guess I didn't really think much about uploading individual Lambdas. I have a stable of them that I keep in a repo with the idea that the tool can run on a CI machine to deploy them on commit (obviously blindly just updating them all, but no big deal).

I guess I could have the "search" logic to find lambda folders only operate if you give the -d argument to specify a directory, and otherwise assume there's a single lambda in the current directory.

That'll probably take some time though. I'll look into it.

from lambda-deploy.

Related Issues (6)

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.