Giter Club home page Giter Club logo

Comments (4)

dan-v avatar dan-v commented on May 24, 2024

Read step 1 from readme: https://github.com/dan-v/awslambdaproxy#usage. You need to open those ports or tunnel won't be established.

from awslambdaproxy.

ray-bun avatar ray-bun commented on May 24, 2024

But it's working if I don;t run it from /etc/rc.local.

from awslambdaproxy.

ray-bun avatar ray-bun commented on May 24, 2024

in /etc/rc.local I have
/home/ec2-user/Main_Run_Proxy.sh > /home/ec2-user/main_run.log 2>&1 &

Main_Run_proxy.sh
#!/bin/bash
export AWS_ACCESS_KEY_ID=**
export AWS_SECRET_ACCESS_KEY=**
/home/ec2-user/awslambdaproxy/build/linux/x86-64/awslambdaproxy setup
/home/ec2-user/awslambdaproxy/build/linux/x86-64/awslambdaproxy run -r ap-southeast-2,ap-southeast-2

from awslambdaproxy.

dan-v avatar dan-v commented on May 24, 2024

@mrWiga - the way it works is the ssh authorized_keys file for the current user is updated to allow reverse tunnels from Lambda functions. The current user will differ in the case of running it under rc.local (root) as opposed to running it manually as the default ec2-user. By default the root user is generally not permitted to login over ssh, and I definitely wouldn't recommend changing that.

I'd highly recommend not running it in rc.local, as that is not meant to be a process supervisor. I don't have a example handy, but take a look at systemd instead. There's also a docker image for this now that simplifies the process supervision, but I haven't documented how to use it yet.

from awslambdaproxy.

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.