serverless-domain-manager: Custom dns creation error: Unexpected key 'securityPolicy' found in params
Can’t execute custom dns creation, it seems like it doesn’t recognize the certificate. But i dont know
sls create_domain
Serverless: Invoke create_domain
Serverless: [AWS apigateway 404 0.847s 0 retries] getDomainName({ domainName: 'aaasada.xxxxxxxxx.com' })
Serverless Domain Manager: NotFoundException: Invalid domain name identifier specified
Serverless: [AWS acm 200 1.186s 0 retries] listCertificates({ CertificateStatuses: [ 'PENDING_VALIDATION', 'ISSUED', 'INACTIVE', [length]: 3 ] })
Serverless: [AWS apigateway undefined 0.022s 0 retries] createDomainName({ certificateArn: undefined,
domainName: 'aaasada.xxxxxxxxx.com',
endpointConfiguration: { types: [ 'REGIONAL', [length]: 1 ] },
regionalCertificateArn: 'arn:aws:acm:us-east-1:580479692653:certificate/d1774f8e-dab5-42ff-b16f-41c0e3de1c7a',
securityPolicy: 'TLS_1_2' })
Serverless Domain Manager: UnexpectedParameter: Unexpected key 'securityPolicy' found in params
Error --------------------------------------------------
Error: Failed to create custom domain aaasada.xxxxxxxxxxxxx.com
For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.
Stack Trace --------------------------------------------
Error: Error: Failed to create custom domain aaasada.xxxxxxxxxxxxx.com
at ServerlessCustomDomain.<anonymous> (/home/dathin/code/python/ambiente+pool/ambiente/node_modules/serverless-domain-manager/dist/index.js:332:23)
at Generator.throw (<anonymous>)
at rejected (/home/dathin/code/python/ambiente+pool/ambiente/node_modules/serverless-domain-manager/dist/index.js:5:65)
at <anonymous>
at process._tickDomainCallback (internal/process/next_tick.js:229:7)
From previous event:
at PluginManager.invoke (/usr/lib/node_modules/serverless/lib/classes/PluginManager.js:446:22)
at PluginManager.run (/usr/lib/node_modules/serverless/lib/classes/PluginManager.js:477:17)
at variables.populateService.then (/usr/lib/node_modules/serverless/lib/Serverless.js:110:33)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)
From previous event:
at Serverless.run (/usr/lib/node_modules/serverless/lib/Serverless.js:97:6)
at serverless.init.then (/usr/lib/node_modules/serverless/bin/serverless:43:28)
at /usr/lib/node_modules/serverless/node_modules/graceful-fs/graceful-fs.js:111:16
at /usr/lib/node_modules/serverless/node_modules/graceful-fs/graceful-fs.js:45:10
at FSReqWrap.oncomplete (fs.js:135:15)
From previous event:
at initializeErrorReporter.then (/usr/lib/node_modules/serverless/bin/serverless:43:6)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)
From previous event:
at /usr/lib/node_modules/serverless/bin/serverless:28:46
at Object.<anonymous> (/usr/lib/node_modules/serverless/bin/serverless:65:4)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Function.Module.runMain (module.js:694:10)
at startup (bootstrap_node.js:204:16)
at bootstrap_node.js:625:3
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Issues: forum.serverless.com
Your Environment Information ---------------------------
OS: linux
Node Version: 8.16.0
Serverless Version: 1.44.1
service: test-1234
provider:
name: aws
runtime: python3.6
stage: dev
region: us-east-1
functions:
hello:
handler: handler.hello
events:
- http:
path: hello
method: get
goodbye:
handler: handler.goodbye
events:
- http:
path: goodbye
method: get
plugins:
- serverless-domain-manager
custom:
customDomain:
domainName: aaasada.xxxxxxxxx.com
stage: ci
basePath: api
certificateName: '*.xxxxxxxxx.com'
createRoute53Record: true
endpointType: 'regional'
securityPolicy: tls_1_2
Versions
- Domain Manager version(s): “^3.3.0”
- Node/npm version: 8.16.0
- Serverless Version: 1.44.1
- Lambda Code python3.6
already tried to remove securityPolice
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 7
- Comments: 20 (3 by maintainers)
Can we get an update on this issue? Neither
v3.2.7
orv3.3.0
is working for me.I also had to downgrade to 3.2.7 to make it work , my endpoint type was regional , region eu-west-1
rolling back to version 3.2.7 did the job for me. there’s something to fix in between
@Jordan-Eckowitz
not related to the issue, but the base path needs to be
/
the mapping wasn’t working for me when I left it as an empty stringRan into the same issue with 3.3.0, rolling back to 3.2.7 resolved the issue for me.