-
Notifications
You must be signed in to change notification settings - Fork 824
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
Auto-update Lambda runtimes for analytics category with CLI upgrade #13788
Comments
Hey @sushpatg 👋 thanks for raising this! Is this a custom function for your Analytics resource? The CLI will update the runtime after stepping through |
Hey @sushpatg, you can update the Analytics CFN template for the function runtime then run a push. it should update the runtime. Observed this on a quick test using the following steps
|
Thank you @ykethan for the reply Not only the runtime, but "PinpointFunction" Lambda function code also need to be modified from sdk v2 to v3. Hence raising this feature request to auto-update both runtime and code when CLI is upgraded |
Hey @sushpatg, did notice this as well. Marking as bug due to lack of an auto update functionality. But as we have seen previously, we can edit the CloudFormation template to update both the runtime and the inline code.
|
Is this feature request related to a new or existing Amplify category?
function, analytics
Is this related to another service?
No response
Describe the feature you'd like to request
To Auto-update Lambda runtimes for analytics, function category with CLI upgrade
Describe the solution you'd like
Currently the categories where CloudFormation is generated during build time like auth, auto generated Lambda functions runtime is being auto updated.
For example with 12.2.0, the runtimes are updated to nodejs18
However for categories like analytics, Cloudformation template is not being auto-updated.
Describe alternatives you've considered
As CloudFormation is not part of build time, like functions category updating the runtime amplify/backend/analytics/name/analytics-name-cloudformation-template.json . However the auto-generated code is in aws-sdk v2.
[+] https://docs.amplify.aws/gen1/javascript/build-a-backend/functions/configure-options/
Additional context
No response
Is this something that you'd be interested in working on?
Would this feature include a breaking change?
The text was updated successfully, but these errors were encountered: