Skip to content

Commit 48f035b

Browse files
committed
added documentation for variableResolver
1 parent efac4e8 commit 48f035b

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

Readme.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Check out their getting started guide for more information [here](https://server
4343
Make sure you have the following installed before starting:
4444
* [nodejs](https://nodejs.org/en/download/)
4545
* [npm](https://www.npmjs.com/get-npm?utm_source=house&utm_medium=homepage&utm_campaign=free%20orgs&utm_term=Install%20npm)
46-
* [serverless](https://serverless.com/framework/docs/providers/aws/guide/installation/)
46+
* [serverless](https://serverless.com/framework/docs/providers/aws/guide/installation/) >= v1.52.0
4747

4848
# Usage
4949

@@ -130,6 +130,14 @@ Now you can run:
130130

131131
Please make sure to check out the complete sample project [here](https://github.com/schwamster/serverless-certificate-creator/tree/master/examples/certificate-creator-example).
132132

133+
### Reference Certificate Arn via variableResolvers
134+
135+
Since version 1.2.0 of this plugin you can use the following syntax to access the certificates Arn in other plugins
136+
137+
${certificate:${self:custom.customCertificate.certificateName}:CertificateArn}
138+
139+
see the serverless [docs](https://serverless.com/framework/docs/providers/aws/guide/plugins#custom-variable-types) for more information
140+
133141
### License
134142

135143
Copyright (c) 2018 Bastian Töpfer, contributors.

index.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class CreateCertificatePlugin {
3939
};
4040
}
4141

42-
async initializeVariables() {
42+
initializeVariables() {
4343
if (!this.initialized) {
4444
this.enabled = this.evaluateEnabled();
4545
if (this.enabled) {
@@ -66,13 +66,6 @@ class CreateCertificatePlugin {
6666
}
6767
})
6868
}
69-
70-
let x = await this.getHostedZoneIds();
71-
72-
console.log("zones", x);
73-
74-
return;
75-
7669
this.initialized = true;
7770
}
7871
}

0 commit comments

Comments
 (0)