Pet*_*ter 5 aws-cloudformation serverless-framework serverless
我正在尝试custom domain
为我的 API 网关和 Lambda 函数设置一个。
我注册了一个域名route53
。前任:myDomainToTestApi.net
我还为:myDomainToTestApi.net、*.myDomainToTestApi.net、www.myDomainToTestApi.net 创建了证书
我安装了插件serverless-domain-manager
的serverless framerwork
在我serverless.yml
添加(在custom下):
customDomain:
domainName: myDomainToTestApi.net
basePath: ''
stage: ${opt:stage, 'dev'}
certificateName: '*.myDomainToTestApi.net'
createRoute53Record: true
Run Code Online (Sandbox Code Playgroud)
所有资源都在 us-east-1
当我运行时:
sls create-domain
Run Code Online (Sandbox Code Playgroud)
我收到以下错误...
Serverless: Load command test
Serverless: Load command dashboard
Serverless: Invoke create_domain
Serverless: [AWS apigateway 404 0.374s 0 retries] getDomainName({ domainName: 'myDomainToTestApi.net' })
Serverless Domain Manager: NotFoundException: Invalid domain name identifier specified
Serverless: [AWS acm 200 0.35s 0 retries] listCertificates({ CertificateStatuses: [ 'PENDING_VALIDATION', 'ISSUED', 'INACTIVE', [length]: 3 ] })
Error --------------------------------------------------
Error: Error: Could not find the certificate *.myDomainToTestApi.net.
at ServerlessCustomDomain.<anonymous> (/Users/user/project/node_modules/serverless-domain-manager/dist/index.js:279:23)
Run Code Online (Sandbox Code Playgroud)
如果我转到证书管理器视图,则所有状态为 Issued
任何人都知道会发生什么......?谢谢。
小智 2
尝试添加另一个名为 的属性,您可以在证书管理器的域详细视图中certificateArn
找到certicateArn
certificateArn: 'xxxxx'
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
2373 次 |
最近记录: |