question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

serverless deploy error: In given setup stage specific options such as `tracing`, `logs` and `tags` are not supported.

See original GitHub issue

serverless.yml

service: my-api

frameworkVersion: '2'
useDotenv: true

provider:
  name: aws
  runtime: nodejs12.x
  stage: dev
  region: ap-southeast-1
  tracing:
    apiGateway: true
    lambda: true
  environment:
    NODE_ENV: development
    MY_AWS_ACCESS_KEY: ${param:MY_AWS_ACCESS_KEY}
    MY_AWS_SECRET_ACCESS_KEY: ${param:MY_AWS_SECRET_ACCESS_KEY}
    JWT_SECRET: ${param:JWT_SECRET}
  iamRoleStatements:
    - Effect: 'Allow'
      Action:
        - 'xray:PutTraceSegments'
        - 'xray:PutTelemetryRecords'
      Resource:
        - '*'
  apiGateway:
    shouldStartNameWithService: true
    description: my-api
  lambdaHashingVersion: 20201221
  timeout: 30

functions:
  main:
    handler: src/main/handler.main
    events:
      - http:
          path: /
          method: get
          cors: true

  otherFunc:
    ...

plugins:
  - serverless-plugin-typescript
  - serverless-offline
  - serverless-plugin-split-stacks

I have this error:


 Serverless Error ---------------------------------------
 
  Rest API id could not be resolved.
  This might be caused by a custom API Gateway configuration.
  
  In given setup stage specific options such as `tracing`, `logs` and `tags` are not supported.
  
  Please update your configuration (or open up an issue if you feel that there's a way to support your setup).
 
  Get Support --------------------------------------------
     Docs:          docs.serverless.com
     Bugs:          github.com/serverless/serverless/issues
     Issues:        forum.serverless.com
 
  Your Environment Information ---------------------------
     Operating System:          darwin
     Node Version:              12.20.0
     Framework Version:         2.17.0 (local)
     Plugin Version:            4.4.1
     SDK Version:               2.3.2
     Components Version:        3.4.3

Anyone know how to fix this? As deploy to sls dashboard now become red icon. Any input is welcome…thanks

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
vicarycommented, Jan 25, 2021

@pgrzesik Let me further narrow down the issue, will post here if the problem is in fact about the core.

1reaction
yeukfei02commented, Jan 7, 2021

after I add provider.apiName it works. now serverless deploy has no error serverless dashboard all green light now.

@pgrzesik Thanks a lot!

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Serverless Error: Rest API id could not be resolved." but ...
In given setup stage specific options such as `tracing`, `logs` and `tags` are not supported. Please update your configuration (or open up ...
Read more >
Serverless Framework Deprecations
Starting with v4.0.0, Serverless will no longer recognize variablesResolutionMode , as supported configuration property. Drop it to avoid validation errors.
Read more >
Enable cloud watch logs for API Gateway using Serverless
Get most help from this ticket How to enable cloud watch logs for API ... stage specific configurations such as tracing, logs and...
Read more >
Upgrading to Serverless Framework v3
In v3, an error will be thrown if these options are defined. Indeed, these settings are applicable only if the API Gateway is...
Read more >
Serverless AWS alias plugin
The alias plugin supports configuring the deployed API Gateway stages, ... All settings are optional, and if not specified will be set to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found