plain-parrot-21984
05/02/2024, 10:46 AMprovided.al2023
runtime as supported. See here: https://www.pulumi.com/registry/packages/aws/api-docs/lambda/function/ (scroll to the very bottom).
However, using that runtime results in the following error:
Diagnostics:
aws:lambda:Function (<our-function-name>):
error: aws:lambda/function:Function resource '<our-function-name>' has a problem: expected runtime to be one of [nodejs nodejs4.3 nodejs6.10 nodejs8.10 nodejs10.x nodejs12.x nodejs14.x nodejs16.x java8 java8.al2 java11 python2.7 python3.6 python3.7 python3.8 python3.9 dotnetcore1.0 dotnetcore2.0 dotnetcore2.1 dotnetcore3.1 dotnet6 nodejs4.3-edge go1.x ruby2.5 ruby2.7 provided provided.al2 nodejs18.x python3.10 java17], got provided.al2023. Examine values at '<our-function-name>.runtime'.
I'm up-to-date with the CLI and the plugins, see:
❯ pulumi version
v3.114.0
❯ pulumi plugin ls
NAME KIND VERSION SIZE INSTALLED LAST USED
aws resource 5.43.0 547 MB 7 minutes ago 7 minutes ago
aws-native resource 0.103.0 98 MB 8 minutes ago 7 minutes ago
I can work with provided.al2
for now, but I'd really like to upgrade to provided.al2023
.
Is this behaviour a bug or did I do something wrong?green-stone-37839
05/02/2024, 9:47 PMprovided.al2023
should definitely be a supported value. The version of the aws
plugin you're using is a bit old (current is 6.33.0) so I imagine you'd just need to update.plain-parrot-21984
05/03/2024, 6:51 AMpulumi plugin rm --all && pulumi up
. The major version change I did not take into account. Thanks for your reply cute pulumi heart