# How to resolve ApiLambdaFunction error using serverless to deploy Angular app to AWS

**URL:** <https://forum.serverless.com/t/how-to-resolve-apilambdafunction-error-using-serverless-to-deploy-angular-app-to-aws/8893>\
**Category:** Serverless Framework\
**Tags:** aws, lambda\
**Created:** [July 25, 2019, 8:20pm UTC](https://forum.serverless.com/t/how-to-resolve-apilambdafunction-error-using-serverless-to-deploy-angular-app-to-aws/8893 "2019-07-25T20:20:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![damosull](https://avatars.discourse-cdn.com/v4/letter/d/f4b2a3/32.png) [@damosull](https://forum.serverless.com/u/damosull)\
**Post date:** [July 25, 2019, 8:20pm UTC](https://forum.serverless.com/t/how-to-resolve-apilambdafunction-error-using-serverless-to-deploy-angular-app-to-aws/8893/1 "2019-07-25T20:20:54Z")

</div>

Hi all,

I am trying to deploy my Angular app to AWS using the serverless package, following the steps in [this](https://www.youtube.com/watch?v=N-6LtzJezsk) tutorial.

I’ve followed the steps correctly, & ran `npm run build:serverless:deploy`, but rather than the app being successfully deployed I get the following error message in the console:

> An error occurred: ApiLambdaFunction - The runtime parameter of nodejs6.10 is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (nodejs10.x) while creating or updating functions. (Service: AWSLambdaInternal; Status Code: 400; Error Code: InvalidParameterValueException; Request ID: dba0ade8-1f2c-4dc7-8ddc-c2966a54a67c).

When I run node -v in my command line, I see that it’s version 10.14.1.

However, I did find the following `nodejs6.10` reference `in serverless.yml` :

```auto
provider:
  name: aws
  runtime: nodejs6.10
  memorySize: 192
  timeout: 10
  stage: production
  region: eu-central-1

```

Can someone please tell me why this is occurring & how to resolve it? Thanks a lot in advance

---

<div class="post-metadata">

**Author:** ![Gadzirai](https://avatars.discourse-cdn.com/v4/letter/g/ecae2f/32.png) [@Gadzirai](https://forum.serverless.com/u/Gadzirai)\
**Post date:** [August 20, 2019, 5:18pm UTC](https://forum.serverless.com/t/how-to-resolve-apilambdafunction-error-using-serverless-to-deploy-angular-app-to-aws/8893/2 "2019-08-20T17:18:39Z")

</div>

update the runtime value within the serverless.yml file to nodejs10.x
