aws-amplify / aws-amplify/amplify-cli

Lambda Runtime out of support support warnings

Open
#11,007 1 comment 1 reaction 0 assignees View on GitHub
feature-request functions ops-general p3
Dominant language
TypeScript
Stars
2.9k
Forks
825
Avg merge
11d 23h
Merged PRs (30d)
2

Description

### Is this feature request related to a new or existing Amplify category?

_No response_

### Is this related to another service?

_No response_

### Describe the feature you'd like to request

I'd like to propose a suite of features that will help relieve some of the risk associated with old environments running end-of-life runtimes (where a rollback becomes impossible without manual edits of the lambda in AWS).

1. All built in amplify lambda's (both generated and stock) should default to the most recent version of the lambda runtime when created. This should be obvious.
2. If the version of amplify is so old that we are creating lambdas that won't be able to be deployed we should warn...
3. All updates to lambda's that aren't on the most recent runtime should throw a warning recommending upgrading to the most recent version (and an automated way of doing that)
4. All push's where there is an existing lambda that is running an out of support runtime should throw a very big warning (regarding rollback) and ask to continue - recommending that the lambda be updated without other changes that may force a rollback
5. When switching to an environment, we should check all lambda's to ensure they are on latest version, and throw warnings

### Describe the solution you'd like

Basically we need a way to check and validate that functions will deploy and fallback successfully before we actually do the deployment.

### Describe alternatives you've considered

Nothing

### Additional context

_No response_

### Is this something that you'd be interested in working on?

- [ ] 👋 I may be able to implement this feature request

### Would this feature include a breaking change?

- [ ] ⚠️ This feature might incur a breaking change

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.