serverless deploy error: In given setup stage specific options such as `tracing`, `logs` and `tags` are not supported.
See original GitHub issueserverless.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:
- Created 3 years ago
- Comments:10 (8 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@pgrzesik Let me further narrow down the issue, will post here if the problem is in fact about the core.
after I add
provider.apiName
it works. nowserverless deploy
has no error serverless dashboard all green light now.@pgrzesik Thanks a lot!