Hi Friends,
I’m trying to do API mapping to existing custom name domain by using serverless-domain-manager plugin. but while trying to deploy to dev I’m facing below error:
Error:
"× Stack myservice-dev failed to deploy (98s)
Environment: win32, node 20.10.0, framework 3.38.0 (local) 3.36.0v (global), plugin 7.2.0, SDK 4.5.1
Credentials: Local, “default” profile
Docs: ‘docs.serverless. com’
Support: forum.serverless. com
Bugs: github. com/serverless/serverless/issues
Error:
Error: Failed to find a stack myservice-dev"
My serverless.yaml file:
service: myservice
frameworkVersion: “3”
useDotenv: true
provider:
name: aws
runtime: nodejs20.x
lambdaHashingVersion: ‘20201221’
stage: ‘dev’
region: ‘eu-west-1’
stackName: myservice-dev
iam:
role: ROLE_ARN
httpApi:
cors: true
authorizers:
apiAuthorizer:
type: request
functionArn: LAMBDA_ARN
identitySource:
- $request.header.authorization
custom:
customDomain:
domainName: DOMAIN_NAME
basePath: ‘abc/xyz’
stage: dev
createRoute53Record: false
apiGatewayApiName: dev-abc-xyz
endpointType: REGIONAL
certificateName: ‘*.DOMAIN_NAME.’
securityPolicy: tls_1_2
functions:
//functions…
plugins:
- serverless-webpack
- serverless-latest-layer-version
- serverless-deployment-bucket
- serverless-domain-manager
Note:Without serverless-domain-manager plugin ,I’m able to deploy to dev successfully.
can anyone help me to find the cause and solution for above issue
thanks in advance.