holy-lambda

octahedrion 2024-03-04T09:51:47.164669Z

I'm trying to use native backend and bb hl:native:executable builds correctly, but when I test with sam local invoke MyHandler I get this error: Local image was not found...Building image...... Failed to build Docker Image NoneType: None Error: Error building docker image: pull access denied for ..., repository does not exist or may require 'docker login': denied: requested access to the resource is denied

octahedrion 2024-03-04T10:00:46.557599Z

solved - the sam build step is missing from https://fierycod.github.io/holy-lambda/#/native-backend-tutorial after step 5

Karol Wójcik 2024-03-04T12:34:41.524829Z

It’s not. You are can have either docker based deployment of Clojure lambda or native lambda. Not both

octahedrion 2024-03-04T13:24:42.419979Z

ok I've misunderstood what's going on then

octahedrion 2024-03-04T13:25:02.466209Z

what should I do about that error ?

Karol Wójcik 2024-03-04T14:21:00.860559Z

You should remove the Docker configuration from your template and use the zip instead of Docker

octahedrion 2024-03-04T16:40:05.541549Z

thanks how do I use the latest.zip with sam local invoke ? I've never done this before and I'm clueless

Karol Wójcik 2024-03-04T16:40:39.470549Z

Create a new project and see how it’s done 🙏

Karol Wójcik 2024-03-05T07:24:23.150469Z

Bingo!

octahedrion 2024-03-05T08:09:22.792009Z

I'm now trying to test on my M1 mac with a nativeimage aarch64 build but sam local invoke says Error: Runtime provided is not supported on 'arm64' architecture I'm using for my :image in bb.edn

Karol Wójcik 2024-03-05T08:09:59.248949Z

Yes. You have to change the architecture in template.yml as well.

octahedrion 2024-03-05T08:10:06.668389Z

I've done that

Karol Wójcik 2024-03-05T08:10:46.595469Z

Ah, I see. Wrong provided runtime. Let me see in the documentation.

Karol Wójcik 2024-03-05T08:13:28.223459Z

Try provided.al2

octahedrion 2024-03-05T08:27:30.991879Z

thankyou so much! I'm guessing that stands for arch linux 2 but how did you know it was that ?

octahedrion 2024-03-05T08:29:52.743719Z

is it because it defaults to amd64 ?

Karol Wójcik 2024-03-05T08:30:26.471489Z

Yep. I read the Amazon documentation. Anything that is template.yml specific is framework agnostic.

octahedrion 2024-03-05T08:30:57.448399Z

well I've been reading the documentation but couldn't find this

Karol Wójcik 2024-03-05T08:33:44.958309Z

🙈