# Cannot resolve serverless.yml: Variables resolution errored when seems to be correctly described

**URL:** <https://forum.serverless.com/t/cannot-resolve-serverless-yml-variables-resolution-errored-when-seems-to-be-correctly-described/19659>\
**Category:** Serverless Framework\
**Created:** [November 6, 2023, 3:09pm UTC](https://forum.serverless.com/t/cannot-resolve-serverless-yml-variables-resolution-errored-when-seems-to-be-correctly-described/19659 "2023-11-06T15:09:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MathRobin](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/mathrobin/32/7717_2.png) [@MathRobin](https://forum.serverless.com/u/MathRobin)\
**Post date:** [November 6, 2023, 3:09pm UTC](https://forum.serverless.com/t/cannot-resolve-serverless-yml-variables-resolution-errored-when-seems-to-be-correctly-described/19659/1 "2023-11-06T15:09:01Z")

</div>

Hi, i get this error when trying to deploy :

```auto
Cannot resolve serverless.yml: Variables resolution errored with:
  - Cannot resolve variable at "provider.environment.NODE_ENV": The param "NODE_ENV" cannot be resolved from CLI options or stage params. If you are using Serverless Framework Compose, make sure to run commands via Compose so that all parameters can be resolved

```

I tried to get help through chat but still stucked.

My serverless.yml file (minimum reproductible):

```auto
service: slack-api
frameworkVersion: '3'
provider:
  name: aws
  runtime: nodejs18.x
  region: eu-west-2
  environment:
    NODE_ENV: ${param:NODE_ENV}
plugins: []
functions:
  statusGet:
    handler: handler.statusGet
    timeout: 29
    events:
      - httpApi:
          path: /status
          method: get

```

You can see full process into screenshot attached. Another screenshot shows NODE\_ENV is well defined at good place. So I don’t understand why I’m stucked.

 ![2023-11-06_15-47](https://canada1.discourse-cdn.com/flex036/uploads/serverless/original/2X/2/286f9ab43e554be164d67de88f4157dbcc377ea0.png)

Thanks in advance!
