Skip to content
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

S3 event on existing bucket creates "old" nodejs16 function, should be configurable / up to date #12265

Open
1 task done
janik6n opened this issue Nov 19, 2023 · 3 comments
Open
1 task done

Comments

@janik6n
Copy link

janik6n commented Nov 19, 2023

Is there an existing issue for this?

  • I have searched existing issues, it hasn't been reported yet

Use case description

When Lambda function is configured to use S3 event trigger (Nodejs20.x runtime) with existing bucket, the additional Lambda function described here https://www.serverless.com/framework/docs/providers/aws/events/s3 Using existing buckets is always created with nodejs16.x runtime.

Example configuration:

events:
      - s3:
          bucket: ${param:myBucket}
          event: s3:ObjectCreated:*
          rules:
            - suffix: .xml
          existing: true
          forceDeploy: true

The runtime for this additional function should be:
a) configurable
b) use ${self:provider.runtime} as default.

Nodejs 16 runtime will be deprecated next year (https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html), and I would like to have my function runtimes up to date.

Proposed solution (optional)

No response

@Ojka91
Copy link

Ojka91 commented Jan 12, 2024

Having same issue here. No solution yet?

@janik6n
Copy link
Author

janik6n commented Mar 12, 2024

The time window between now and Node.js 16 deprecation & summer holidays is shortening fast. We are losing hope for this and similar issues like #12133 to be resolved in reasonable time, with time still left for testing etc.

Further, as described on the other issue linked, the support is going to be on v4 only, which means that all existing stacks would need to be migrated from Serverless Framework v3 to v4. Since this is going to be a major version upgrade, many issues are expected to arise.

Since this is going to involve migration work in any case, and Serverless Framework (OSS version at least) development seems to have stagnated in November 2023, we are losing faith in this as a viable product. Thus, we have started the migration to other solutions altogether. Godspeed. 🚀

@Sunac
Copy link

Sunac commented Apr 8, 2024

The time window between now and Node.js 16 deprecation & summer holidays is shortening fast. We are losing hope for this and similar issues like #12133 to be resolved in reasonable time, with time still left for testing etc.

Further, as described on the other issue linked, the support is going to be on v4 only, which means that all existing stacks would need to be migrated from Serverless Framework v3 to v4. Since this is going to be a major version upgrade, many issues are expected to arise.

Since this is going to involve migration work in any case, and Serverless Framework (OSS version at least) development seems to have stagnated in November 2023, we are losing faith in this as a viable product. Thus, we have started the migration to other solutions altogether. Godspeed. 🚀

I resolved it like this - moved lambdas to node20 and simply override customS3 one via Resources. Check this if you find it useful:
#11337 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants