- Create the project from the following template:
$ sls create --template-url https://github.com/danteinc/js-cloud-native-cookbook/tree/master/ch5/ssl-cert --path cncb-ssl-cert
- Navigate to the cncb-ssl-cert directory with cd cncb-ssl-cert.
- Review the file named serverless.yml with the following content:
service: cncb-ssl-certprovider: name: aws # cfnRole: arn:aws:iam::<account-number>:role/${opt:stage}-cfnRoleplugins: - serverless-spa-deploy - serverless-spa-configcustom: spa: ... dns: hostedZoneId: ZXXXXXXXXXXXXX validationDomain: example.com domainName: ${self:custom.dns.validationDomain} wildcard: '*.${self:custom.dns.domainName}' endpoint: ${opt:stage}-${self:service}.${self:custom.dns.domainName} cdn: acmCertificateArn ...