Git Product home page Git Product logo

Comments (6)

jfuss avatar jfuss commented on September 13, 2024 1

@klische That is not true. When running on an M1, you still need to run the x86 container. RIE is not meant to run on anything but what Lambda Supports. Lambda does not support ARM therefore producing an ARM artifact doesn't give you anything. Even if we did provide an ARM artifact, that would allow you to run in ARM which Lambda doesn't support. So testing on ARM but running on x86 can lead to incompatibilities and why we decided to only produce artifacts for Lambda Supported OS's.

@rajasimon SAM CLI supports M1 and runs with RIE. So it should be working. What SAM CLI does, is adds RIE into the container (through a docker build process) and then mounts the code into the container for invoking.

from aws-lambda-runtime-interface-emulator.

jfuss avatar jfuss commented on September 13, 2024

The Runtime Interface Emulator is only built for the OS Lambda Supports. Since this is meant to run within the container and lambda only supports x86, there is no need for arm, xnu, etc.

Closing

from aws-lambda-runtime-interface-emulator.

chadbrewbaker avatar chadbrewbaker commented on September 13, 2024

The purpose of an emulator is to abstract. I just asked if there were any blockers you knew of.

If you are going to weigh it down with linux system calls and x86 then you might as well open source one of the full stacks modulo crypto so Daniel Lemire etc can SIMD the HTML/JSON transforms.

from aws-lambda-runtime-interface-emulator.

jfuss avatar jfuss commented on September 13, 2024

@chadbrewbaker I am not really following the second part there. The blocker is that Lambda doesn't support anything but x86. The goal of this project is to allow you to test you functions locally. If we allow anything but what Lambda's OS currently supports, then you could run something locally that does not work on Lambda itself. The restrictions do not have anything to do with syscalls but more to do with the fidelity with Lambda.

from aws-lambda-runtime-interface-emulator.

klische avatar klische commented on September 13, 2024

In

@chadbrewbaker I am not really following the second part there. The blocker is that Lambda doesn't support anything but x86. The goal of this project is to allow you to test you functions locally. If we allow anything but what Lambda's OS currently supports, then you could run something locally that does not work on Lambda itself. The restrictions do not have anything to do with syscalls but more to do with the fidelity with Lambda.

This logic does not make sense. In order to test locally on a machine that is ARM64 (M1 Macs), the RIE images must run in a docker for ARM64. Otherwise, the entirety of the AWS developer documentation “on debbugging Lambdas locally” is broken for ARM64/M1 Macs.

from aws-lambda-runtime-interface-emulator.

rajasimon avatar rajasimon commented on September 13, 2024

Wish this AWS Lambda docker works natively in my M1 machine. Now that it's not curios about whether SAM supports or not?

from aws-lambda-runtime-interface-emulator.

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.