hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.73k stars 9.09k forks source link

Tests: Replace use of `nodejs14.x` runtime for AWS Lambda functions #35939

Open ewbankkit opened 6 months ago

ewbankkit commented 6 months ago

AWS Support notice:

Starting January 25, 2024, you will no longer be able to update existing functions using the Node.js 14 runtime.

In various acceptance tests:

        Error: creating Lambda Function (tf-acc-test-3120692075753261682): operation error Lambda: CreateFunction, https response error StatusCode: 400, RequestID: 889cc8a0-3eb1-4c84-a28e-ed90db4577c0, InvalidParameterValueException: The runtime parameter of nodejs14.x is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (nodejs20.x) while creating or updating functions.
% grep nodejs14.x internal/**/*.go    
internal/service/apigatewayv2/authorizer_test.go:  runtime       = "nodejs14.x"
internal/service/apigatewayv2/integration_test.go:  runtime       = "nodejs14.x"
internal/service/appsync/graphql_api_test.go:  runtime       = "nodejs14.x"
internal/service/connect/lambda_function_association_data_source_test.go:  runtime       = "nodejs14.x"
internal/service/connect/lambda_function_association_test.go:  runtime       = "nodejs14.x"
internal/service/ec2/vpnclient_endpoint_test.go:  runtime       = "nodejs14.x"
internal/service/ec2/vpnclient_endpoint_test.go:  runtime       = "nodejs14.x"
internal/service/lambda/function_test.go:  runtime       = "nodejs14.x"
internal/service/lambda/function_url_data_source_test.go:  runtime       = "nodejs14.x"
internal/service/lambda/function_url_test.go:  runtime       = "nodejs14.x"
internal/service/lambda/function_url_test.go:  runtime       = "nodejs14.x"
internal/service/lambda/function_url_test.go:  runtime       = "nodejs14.x"
internal/service/lambda/function_url_test.go:  runtime       = "nodejs14.x"
internal/service/lambda/function_url_test.go:  runtime       = "nodejs14.x"
internal/service/lambda/function_url_test.go:  runtime       = "nodejs14.x"
internal/service/lambda/invocation_test.go:  runtime       = "nodejs14.x"
internal/service/lambda/layer_version_test.go:              Config: testAccLayerVersionConfig_skipDestroy(rName, "nodejs14.x"),
internal/service/lambda/layer_version_test.go:  compatible_runtimes = ["nodejs14.x", "nodejs16.x"]
internal/service/s3control/object_lambda_access_point_test.go:  runtime       = "nodejs14.x"
internal/service/transfer/server_test.go:  runtime       = "nodejs14.x"
internal/service/transfer/workflow_test.go:  runtime       = "nodejs14.x"
github-actions[bot] commented 6 months ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue