You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -62,11 +62,11 @@ open serverless.yml and add the following:
62
62
certificateName: 'abc.somedomain.io'
63
63
//optional
64
64
idempotencyToken: 'abcsomedomainio'
65
-
//required if hostedZoneId is not set
66
-
hostedZoneName: 'somedomain.io.'
67
-
//required if hostedZoneName is not set
68
-
hostedZoneId: 'XXXXXXXXX'
69
-
// optional default is false. if you set it to true you will get a new file (after executing serverless create-cert), that contains certificate info that you can use in your deploy pipeline
65
+
//required if hostedZoneIds is not set, alternativly as an array
66
+
hostedZoneNames: 'somedomain.io.'
67
+
//required if hostedZoneNames is not set
68
+
hostedZoneIds: 'XXXXXXXXX'
69
+
// optional default is false. if you set it to true you will get a new file (after executing serverless create-cert), that contains certificate info that you can use in your deploy pipeline, alternativly as an array
70
70
writeCertInfoToFile: false
71
71
// optional, only used when writeCertInfoToFile is set to true. It sets the name of the file containing the cert info
72
72
certInfoFileName: 'cert-info.yml'
@@ -81,6 +81,8 @@ open serverless.yml and add the following:
81
81
tags:
82
82
Name: 'somedomain.com'
83
83
Environment: 'prod'
84
+
//optional default false. this is useful if you managed to delete your certificate but the dns validation records still exist
85
+
rewriteRecords: false
84
86
85
87
86
88
now you can run:
@@ -118,10 +120,11 @@ Open serverless.yml and add the following:
118
120
customCertificate:
119
121
certificateName: 'abc.somedomain.io' //required
120
122
idempotencyToken: 'abcsomedomainio' //optional
121
-
hostedZoneName: 'somedomain.io.' //required if hostedZoneId is not set
122
-
hostedZoneId: 'XXXXXXXXX' //required if hostedZoneName is not set
123
+
hostedZoneNames: 'somedomain.io.' //required if hostedZoneIds is not set
124
+
hostedZoneIds: 'XXXXXXXXX' //required if hostedZoneNames is not set
123
125
region: eu-west-1 // optional - default is us-east-1 which is required for custom api gateway domains of Type Edge (default)
124
126
enabled: true // optional - default is true. For some stages you may not want to use certificates (and custom domains associated with it).
127
+
rewriteRecords: false
125
128
126
129
Now you can run:
127
130
@@ -130,6 +133,14 @@ Now you can run:
130
133
131
134
Please make sure to check out the complete sample project [here](https://github.com/schwamster/serverless-certificate-creator/tree/master/examples/certificate-creator-example).
132
135
136
+
### Reference Certificate Arn via variableResolvers
137
+
138
+
Since version 1.2.0 of this plugin you can use the following syntax to access the certificates Arn in other plugins
0 commit comments