This is a simple plugin for [Serverless Framework](https://serverless.com/) to get a HostedZoneId from a Hosted Zone created outside the Cloudformation Stack for use.
npm install serverless-get-hosted-zoneThis is a simple plugin for Serverless Framework to get a HostedZoneId from a Hosted Zone created outside the Cloudformation Stack for use.
``bash`
$ npm install serverless-get-hosted-zone --save-dev
Add the plugin to your serverless.yml file:
`yaml`
plugins:
- serverless-get-hosted-zone
Just use it as a Serverless Variable:
`yaml``
myVariable: ${hostedZoneId:example.com}