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

aws.lambda.Runtime enum is missing many language versions #3260

Closed
lukehoban opened this issue Jan 15, 2024 · 0 comments · Fixed by #3261
Closed

aws.lambda.Runtime enum is missing many language versions #3260

lukehoban opened this issue Jan 15, 2024 · 0 comments · Fixed by #3261
Assignees
Labels
kind/bug Some behavior is incorrect or out of spec resolution/fixed This issue was fixed

Comments

@lukehoban
Copy link
Contributor

Many of the latest runtime versions supported by Lambda are not in the enum we define:

https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html

Enum: []schema.EnumValueSpec{
{Value: "dotnetcore2.1", Name: "DotnetCore2d1", DeprecationMessage: "This runtime is now deprecated"},
{Value: "dotnetcore3.1", Name: "DotnetCore3d1"},
{Value: "dotnet5.0", Name: "Dotnet5d0"},
{Value: "dotnet6", Name: "Dotnet6"},
{Value: "go1.x", Name: "Go1dx"},
{Value: "java8", Name: "Java8"},
{Value: "java8.al2", Name: "Java8AL2"},
{Value: "java11", Name: "Java11"},
{Value: "java17", Name: "Java17"},
{Value: "ruby2.5", Name: "Ruby2d5", DeprecationMessage: "This runtime is now deprecated"},
{Value: "ruby2.7", Name: "Ruby2d7"},
{Value: "ruby3.2", Name: "Ruby3d2"},
{Value: "nodejs10.x", Name: "NodeJS10dX", DeprecationMessage: "This runtime is now deprecated"},
{Value: "nodejs12.x", Name: "NodeJS12dX"},
{Value: "nodejs14.x", Name: "NodeJS14dX"},
{Value: "nodejs16.x", Name: "NodeJS16dX"},
{Value: "nodejs18.x", Name: "NodeJS18dX"},
{Value: "python2.7", Name: "Python2d7", DeprecationMessage: "This runtime is now deprecated"},
{Value: "python3.6", Name: "Python3d6", DeprecationMessage: "This runtime is now deprecated"},
{Value: "python3.7", Name: "Python3d7"},
{Value: "python3.8", Name: "Python3d8"},
{Value: "python3.9", Name: "Python3d9"},
{Value: "python3.10", Name: "Python3d10"},
{Value: "python3.11", Name: "Python3d11"},
{Value: "provided", Name: "Custom"},
{Value: "provided.al2", Name: "CustomAL2"},

Similarly, many runtimes are deprecated, but we have not marked them as such yet.

@lukehoban lukehoban added the kind/bug Some behavior is incorrect or out of spec label Jan 15, 2024
lukehoban pushed a commit that referenced this issue Jan 17, 2024
Catches our enum up to date with the latest from
https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html.

Also updates the deprecated runtimes to latest, including some which
have been very recently deprecated (but in a few cases, are not yet
erroring on create/update - though those are coming in the next few
weeks).

Also fixes CallbackFunction in TS to ensure it can accept a normal
`string` as well, to ensure that users are not prevented from passing
not-yet-supported enum values in the future. This aligns with the
underlying `Function` type which accepts both.

Fixes #3260.
Fixes #2994.
@pulumi-bot pulumi-bot added the resolution/fixed This issue was fixed label Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Some behavior is incorrect or out of spec resolution/fixed This issue was fixed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants