-
Notifications
You must be signed in to change notification settings - Fork 38
fix: Use Amazon Linux 2 provided runtime #401
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Getting on this today. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested this out and it fails since asset/main is empty. I do not think we should change the name in Dockerfile.
Curious as to when this will be merged ? Do you need some help ? |
@scanlonp I won't be back at work until next week, I'll look at this then. @learner1unknown you're welcome to pick this up and take it across the line if you want to. |
Head branch was pushed to by a user without write access
@scanlonp apologies for the delay. It seems clear from the source file still being named I've hopefully fixed things, with the usual caveat that I cannot test this. |
@SamStephens yup, I will run this again. |
@SamStephens, I am not super familiar with this module. When I build locally, I cannot get the lambda main to be non-empty. I will see if this is a problem isolated to this pull, but from my initial testing, it is the same for the main branch of the module. Any ideas? |
Okay, now I understand a bit more what is going on, some more fundamental changes are needed. I managed to get the test example running and I've learned some more about how this works. Even with the change I based this on, they're still using the base image public.ecr.aws/sam/build-go1.x:latest, which is deprecated at the end of the year when the Go runtime is. Instead it should be using an Amazon Linux base image with the aws-lambda-go/lambda package. The rename of main to bootstrap you called out earlier will have been to do with how Custom Lambda runtimes work. I think rather than this rename, the right thing is to use the aws-lambda-go/lambda package. I think at this point I'm probably going to close out this pull request, and start with a fresh one. |
The Go runtime will shortly be end of life, so change over to the AL2 runtime.
Fixes #320
This is a direct copy of #323.
I've not been able to do any real testing.
npx test
appears to pass.I tried to deploy the sample application as per README.md via
NO_PREBUILT_LAMBDA=1 npx cdk deploy -a "npx ts-node -P tsconfig.dev.json --prefer-ts-exts test/example.ecr-deployment.ts"
, but it appears this no longer works.I'd test using my application that consumes this package, but it's a Python package, and I don't know how to generate a Python library from this package.