1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

challenge_clubAdvent Calendar 2023

Day 2

`amplify push`時に以下のようなエラーが出て困った( "The runtime parameter of nodejs12.x is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (nodejs18.x) while creating or updating functions.)(※注:未解決です-->解決した)

Last updated at Posted at 2023-11-05

これを試そうとした

https://aws.amazon.com/jp/builders-flash/202111/amplify-geo-map/?awsf.filter-name=*all

amplify push時に以下のようなエラーが出て困った(※注:未解決です)

AWS::Lambda::Function      Sun Nov 05 2023 19:46:19 GMT+0900 (日本標準時) Resource handler returned message: "The runtime parameter of nodejs12.x is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (nodejs18.x) while creating or updating functions. (Service: Lambda, Status Code: 400, Request ID: d5a7765b-9a8c-41d5-b98d-e99b5f954a98)" (RequestToken: c1e3fd90-0507-47fe-f9d7-184d2959af6d, HandlerErrorCode: InvalidRequest)

error内容

The runtime parameter of nodejs12.x is no longer supported for creating or updating AWS Lambda functions while using AwsCustomResource

これを試したが効果がなかった

https://qiita.com/jre233kei/items/b30e2795e975311cb936

npm install -g @aws-amplify/cli

これも試したが効果がなかった

https://github.com/aws-amplify/amplify-category-api/issues/1520

npm i -g @aws-amplify/cli@12.1.0-rc.2def814808.0

これも試したが効果がなかった

https://github.com/aws-amplify/amplify-category-api/issues/1520#issuecomment-1652277797

npm i -g @aws-amplify/cli@rest-api-july-temp

どうすればいいのか、、、

(追記)

これを信じて、

Closing this issue, since this should have been mitigated since Amplify CLI version 12.3.0 and up.
https://github.com/aws-amplify/amplify-category-api/issues/1520

https://aws.amazon.com/jp/builders-flash/202111/amplify-geo-map/?awsf.filter-name=*all

version指定せず最新(12.3以降)にして最初からやり直したら解決した

npm install -g @aws-amplify/cli

おそらく、npm install,amplify configure,amplify init,amplify add geoのどこかで解決している気がしている

参考

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?