Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

serverless-domain-manager

amplify-education1.1mMIT8.0.0TypeScript support: included

Serverless plugin for managing custom domains with API Gateways.

serverless plugin custom domain, custom domain, serverless plugins, api gateway, lambda, aws, aws lambda, amazon, amazon web services, serverless.com, domain manager

readme

serverless-domain-manager

serverless npm version MIT licensed Codacy Badge npm downloads

Create custom domain names that your lambda can deploy to with serverless. Allows for base path mapping when deploying and deletion of domain names.

About Amplify

Amplify builds innovative and compelling digital educational products that empower teachers and students across the country. We have a long history as the leading innovator in K-12 education - and have been described as the best tech company in education and the best education company in tech. While others try to shrink the learning experience into the technology, we use technology to expand what is possible in real classrooms with real students and teachers.

Learn more at https://www.amplify.com

Getting Started

Prerequisites

Make sure you have the following installed before starting:

The IAM role that is deploying the lambda might need the following permissions:

acm:ListCertificates                   *
acm:DescribeCertificate                *
apigateway:AddCertificateToDomain      /domainnames*
apigateway:RemoveCertificateFromDomain /domainnames*
apigateway:GET                         /domainnames*, /apis*, /restapis*
apigateway:DELETE                      /domainnames*, /apis*, /restapis*
apigateway:POST                        /domainnames*, /apis*, /restapis*
apigateway:PATCH                       /domainnames*, /apis*, /restapis*
cloudformation:GET                     *
cloudformation:ListStacks              *
cloudformation:DescribeStacks          *
cloudfront:UpdateDistribution          *
route53:ListHostedZones                *
route53:ChangeResourceRecordSets       hostedzone/{HostedZoneId}
route53:GetHostedZone                  *
route53:ListResourceRecordSets         *
iam:CreateServiceLinkedRole            arn:aws:iam::${AWS::AccountId}: role/aws-service-role/ops.apigateway.amazonaws.com/AWSServiceRoleForAPIGateway
s3:ListBucket                          *
s3:GetObject                           *

CloudFormation

Alternatively you can generate an least privileged IAM Managed Policy for deployment with this:

deployment policy cloudformation template

Installing

# From npm (recommended)
npm install serverless-domain-manager --save-dev

Then make the following edits to your serverless.yaml file:

Add the plugin.

plugins:
  - serverless-domain-manager

Add the plugin configuration (example for serverless.foo.com/api). For a single domain and API type the following structure can be used.

custom:
  customDomain:
    domainName: serverless.foo.com
    stage: ci
    basePath: api
    certificateName: '*.foo.com'
    createRoute53Record: true
    createRoute53IPv6Record: true
    endpointType: REGIONAL
    securityPolicy: tls_1_2
    apiType: rest
    autoDomain: false

Multiple API types mapped to different domains can also be supported with the following structure. The key is the API Gateway API type.

custom:
  customDomain:
    rest:
      domainName: rest.serverless.foo.com
      stage: ci
      basePath: api
      certificateName: '*.foo.com'
      createRoute53Record: true
      createRoute53IPv6Record: true
      endpointType: REGIONAL
      securityPolicy: tls_1_2
    http:
      domainName: http.serverless.foo.com
      stage: ci
      basePath: api
      certificateName: '*.foo.com'
      createRoute53Record: true
      createRoute53IPv6Record: true
      endpointType: REGIONAL
      securityPolicy: tls_1_2
    websocket:
      domainName: ws.serverless.foo.com
      stage: ci
      basePath: api
      certificateName: '*.foo.com'
      createRoute53Record: true
      createRoute53IPv6Record: true
      endpointType: REGIONAL
      securityPolicy: tls_1_2

Or for multiple domains

custom:
  customDomains:
    - http:
        domainName: http-api-${opt:RANDOM_STRING}.${env:TEST_DOMAIN}
        basePath: ''
        endpointType: REGIONAL
    - http:
        domainName: http-api-${opt:RANDOM_STRING}.${env:TEST_DOMAIN}.foo
        basePath: ''
        endpointType: REGIONAL

For multi-region deployments, a route53Params structure can be used to support latency or weighted routing policies

custom:
  customDomain:
    domainName: serverless.foo.com
    stage: ci
    basePath: api
    certificateName: '*.foo.com'
    createRoute53Record: true
    endpointType: REGIONAL
    securityPolicy: tls_1_2
    route53Params:
      routingPolicy: latency
Parameter Name Default Value Description
domainName (Required) | The domain name to be created in API Gateway and Route53 (if enabled) for this API.
basePath (none) The base path that will prepend all API endpoints.
stage Value of --stage, or provider.stage (serverless will default to dev if unset) The stage to create the domain name for. This parameter allows you to specify a different stage for the domain name than the stage specified for the serverless deployment.
certificateName Closest match The name of a specific certificate from Certificate Manager to use with this API. If not specified, the closest match will be used (i.e. for a given domain name api.example.com, a certificate for api.example.com will take precedence over a *.example.com certificate).

Note: Edge-optimized endpoints require that the certificate be located in us-east-1 to be used with the CloudFront distribution.
certificateArn (none) The arn of a specific certificate from Certificate Manager to use with this API.
createRoute53Record true Toggles whether or not the plugin will create A Alias and AAAA Alias records in Route53 mapping the domainName to the generated distribution domain name. If false, does not create a record.
createRoute53IPv6Record true Toggles whether or not the plugin will create an AAAA Alias record in Route53 mapping the domainName to the generated distribution domain name. If false, does not create a record.
route53Profile (none) Profile to use for accessing Route53 resources when Route53 records are in a different account
route53Region (none) Region to send Route53 services requests to (only applicable if also using route53Profile option)
endpointType EDGE Defines the endpoint type, accepts REGIONAL or EDGE.
apiType rest Defines the api type, accepts rest, http or websocket.
tlsTruststoreUri undefined An Amazon S3 url that specifies the truststore for mutual TLS authentication, for example s3://bucket-name/key-name. The truststore can contain certificates from public or private certificate authorities. Be aware mutual TLS is only available for regional APIs.
tlsTruststoreVersion undefined The version of the S3 object that contains your truststore. To specify a version, you must have versioning enabled for the S3 bucket.
hostedZoneId | If hostedZoneId is set the route53 record set will be created in the matching zone, otherwise the hosted zone will be figured out from the domainName (hosted zone with matching domain).
hostedZonePrivate | If hostedZonePrivate is set to true then only private hosted zones will be used for route 53 records. If it is set to false then only public hosted zones will be used for route53 records. Setting this parameter is specially useful if you have multiple hosted zones with the same domain name (e.g. a public and a private one). If records need to be set in both private and public hosted zones use splitHorizonDns parameter.
splitHorizonDns false When hostedZoneId and hostedZonePrivate are not set, setting this to true creates route53 records in both private and public hosted zones with matching domain.
enabled true Sometimes there are stages for which is not desired to have custom domain names. This flag allows the developer to disable the plugin for such cases. Accepts either boolean or string values and defaults to true for backwards compatibility.
securityPolicy tls_1_2 The security policy to apply to the custom domain name. Accepts tls_1_0 or tls_1_2
allowPathMatching false When updating an existing api mapping this will match on the basePath instead of the API ID to find existing mappings for an update.
autoDomain false Toggles whether or not the plugin will run create_domain/delete_domain as part of sls deploy/remove so that multiple commands are not required.
autoDomainWaitFor 120 How long to wait for create_domain to finish before starting deployment if domain does not exist immediately.
route53Params | A set of options to customize Route 53 record creation. If left empty, A and AAAA records with simple routing will be created. If createRoute53Record is false, anything passed here will be ignored.
route53Params:
  routingPolicy
simple Defines the Route 53 routing policy, accepts simple, latency or weighted.
route53Params:
  weight
200 Sets the weight for weighted routing. Ignored for simple and latency routing.
route53Params:
  setIdentifier
| A unique identifier for records in a set of Route 53 records with the same domain name. Only relevant for latency and weighted routing. Defaults to the regional endpoint if not provided.
route53Params:
  healthCheckId
| An optional id for a Route 53 health check. If it is failing, Route 53 will stop routing to it. Only relevant for latency and weighted routing. If it is not provided, no health check will be associated with the record.
preserveExternalPathMappings false When autoDomain is set to true, and a deployment is removed, setting this to true checks for additional API Gateway base path mappings before automatically deleting the domain, and avoids doing so if they exist.

Running

To create the custom domain:

serverless create_domain

To deploy with the custom domain:

serverless deploy

To remove the created custom domain:

serverless delete_domain

How it works

Creating the custom domain takes advantage of Amazon's Certificate Manager to assign a certificate to the given domain name. Based on already created certificate names, the plugin will search for the certificate that resembles the custom domain's name the most and assign the ARN to that domain name. The plugin then creates the proper A Alias and AAAA Alias records for the domain through Route 53. Once the domain name is set it takes up to 40 minutes before it is initialized. After the certificate is initialized, sls deploy will create the base path mapping and assign the lambda to the custom domain name through CloudFront. All resources are created independent of CloudFormation. However, deploying will also output the domain name and distribution domain name to the CloudFormation stack outputs under the keys DomainName and DistributionDomainName, respectively.

Behavior Change in Version 3

In version 3, we decided to create/update/delete all resources through the API. Previously, only the basepath mapping was managed through CloudFormation. We moved away from creating anything through the stack for two reasons.

1) It seemed cleaner to have all resources be created in the same fashion, rather than just having one created elsewhere. Since multiple CloudFormation stacks can't create the same custom domain, we decided to have everything be done through the API.

2) We ran into issues such as #57 where the CloudFormation wasn't always being applied.

However, we still add the domain name and distribution domain name to the CloudFormation outputs, preserving the functionality requested in #43 implemented in #47.

Running Tests

To run unit tests:

npm test

To run integration tests, set an environment variable TEST_DOMAIN to the domain you will be testing for (i.e. example.com if creating a domain for api.example.com). And ROUTE53_PROFILE for creating route53 record in one AWS account and deploy in another. Then,

export TEST_DOMAIN=example.com
export ROUTE53_PROFILE=default
export TLS_TRUSTSTORE_URI=s3://bucket-name/key-name
export TLS_TRUSTSTORE_VERSION=default

npm run build
npm run integration-test

All tests should pass. All unit tests should pass before merging. Integration tests will take an extremely long time, as DNS records have to propogate for the resources created - therefore, integration tests will not be run on every commit.

If there is an error update the node_modules inside the serverless-domain-manager folder:

npm install

Writing Integration Tests

Unit tests are found in test/unit-tests. Integration tests are found in test/integration-tests. Each folder in tests/integration-tests contains the serverless-domain-manager configuration being tested. To create a new integration test, create a new folder for the handler.js and serverless.yml with the same naming convention and update deploy.test.ts or create a separate one with the test.ts ending.

Changing API Types

AWS API Gateway has three different API types: REST, HTTP, and WebSocket. Special steps need to be taken when migrating from one api type to another. A common migration will be from a REST API to an HTTP API given the potential cost savings. Below are the steps required to change from REST to HTTP. A similar process can be applied for other API type migrations.

REST to HTTP 1) Confirm the Domain name is a Regional domain name. Edge domains are not supported by AWS for HTTP APIs. See this guide for migrating an edge-optimized custom domain name to regional. 2) Wait for all DNS changes to take effect/propagate and ensure all traffic is being routed to the regional domain name before proceeding. 3) Make sure you have setup new or modified existing routes to use httpApi event in your serverless.yml file. 4) Make the following changes to the customDomain properties in the serverless.yml confg:

```yaml
endpointType: REGIONAL
apiType: http
allowPathMatching: true # Only for one deploy
```

5) Run sls deploy 6) Remove the allowPathMatching option, it should only be used once when migrating a base path from one API type to another.

NOTE: Always test this process in a lower level staging or development environment before performing it in production.

Known Issues

  • (5/23/2017) CloudFormation does not support changing the base path from empty to something or vice a versa. You must run sls remove to remove the base path mapping.
  • (1/17/2018) The create_domain command provided by this plugin does not currently update an existing Custom Domain's configuration. Instead, it only supports updating the Route 53 record pointing to the Custom Domain. For example, one must delete and recreate a Custom Domain to migrate it from regional to edge or vice versa, or to modify the certificate.
  • (8/22/2018) Creating a custom domain creates a CloudFront Distribution behind the scenes for fronting your API Gateway. This CloudFront Distribution is managed by AWS and cannot be viewed/managed by you. This is not a bug, but a quirk of how the Custom Domain feature works in API Gateway.
  • (2/12/2019) Users who upgraded from 2.x.x to version 3.0.4 (now unpublished) and then reverted back to 2.x.x will be unable to deploy because of a bug that will be fixed in 3.1.0. The workaround is to delete the basepath mapping manually, which will let them successfully revert back to 2.x.x.
  • (1/20/2022) Using route53Profile option requires having hosted zone for the domain in this profile and ACM certificate in the main profile (where functions are deployed).
  • (2/13/2024) ACM certificate must exist in the us-east-1 for the EDGE endpoint type. https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-edge-optimized-custom-domain-name.html

Responsible Disclosure

If you have any security issue to report, contact project maintainers privately. You can reach us at github@amplify.com

Contributing

We welcome pull requests! For your pull request to be accepted smoothly, we suggest that you:

  1. For any sizable change, first open a GitHub issue to discuss your idea.
  2. Create a pull request. Explain why you want to make the change and what it’s for. We’ll try to answer any PR’s promptly.

changelog

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

[8.0.0] - 2024-11-20

Changed

  • Dropped Serverless V2 support.
  • Dropped Node14 support.
  • Updated packages.

[7.4.0] - 2024-08-28

Added

  • Updated peerDependencies to support Serverless Framework v4. Thank you @czubocha (633)

Fixed

  • Fixed domain deleting when fail on not exist stack. Thank you @0vvland (627)
  • Added a fix to work with the LocalStack. Thank you @circulon (634)
  • Updated packages

[7.3.8] - 2023-03-07

Fixed

  • Updated Cloudformation find API id error message

[7.3.7] - 2023-03-06

Fixed

  • Added filtering by stage for removing API mappings. That filter is skipped in case allowPathMatching is enabled.
  • Added throwing an error for a non-existing custom domain during base path mappings setup.

[7.3.6] - 2023-02-13

Changed

[7.3.5] - 2023-02-06

Fixed

  • Hardcoded $default stage for the HTTP API and default base path. More info here

[7.3.4] - 2023-01-30

Fixed

  • Fixed bathPathMapping filtering with the allowPathMatching enabled.

[7.3.3] - 2023-12-07

Changed

  • Switched from tslint to eslint
  • Code refactoring and reformat

[7.3.2] - 2023-12-07

Fixed

  • Fixed hosted zone filtering, when the domain api.mydomain.com equals the host name api.mydomain.com.

[7.3.1] - 2023-12-01

Fixed

  • Fixed hosted zone filtering, when the domain serverlessdevapi.mydomain.com contains the host name api.mydomain.com.

[7.3.0] - 2023-11-30

Fixed

  • Fixed deprecated packages warnings

[7.2.1] - 2023-11-27

Fixed

  • Fixed log is undefined when plugin is added programatically
  • Updated packages

[7.2.0] - 2023-11-24

Fixed

  • Fixed support for proxy. Thank you @ertanden (597)
  • Updated packages

[7.1.2] - 2023-08-14

Fixed

  • Fixed not getting all paginated results from AWS clients calls. Thank you @sromic (592)

[7.1.1] - 2023-07-24

Fixed

  • Fixed compiledCloudFormationTemplate export names for the custom stages.

[7.1.0] - 2023-07-18

Fixed

  • Support for the custom stages.

[7.0.4] - 2023-05-10

Added

  • Support for the AWS V2 getCredentials function.

[7.0.3] - 2023-05-05

Fixed

  • Managing of the Serverless options aws-profile parameter and provider.profile parameter from the serverless.yml.

[7.0.2] - 2023-03-24

Fixed

  • Managing of the Serverless provider.region parameter from the serverless.yml.

[7.0.1] - 2023-03-23

Fixed

  • Managing of the Serverless options region parameter.

[7.0.0] - 2023-03-22

Changed

  • Switched to the AWS SDK V3. Small improvements related to it.
  • Test refactoring.

[6.4.4] - 2023-02-24

Fixed

  • Fixed multi-level base path validation. Thank you @scrampin (561)

[6.4.3] - 2023-02-17

Fixed

  • Used ApiGatewayV2 for the multi-level base path mapping.

[6.4.2] - 2023-02-13

Fixed

  • Changed the logic to use APIGateway for the rest API type and ApiGatewayV2 for the http and websocket.

[6.4.1] - 2023-02-10

Fixed

  • Disable custom stage for the base path mappings.

[6.4.0] - 2023-02-10

Added

  • Added support for the CloudFormation Ref intrinsic function.

[6.3.4] - 2023-02-10

Fixed

  • Fixed stage for the cloudFormation getId method.

[6.3.3] - 2023-02-10

Fixed

  • Fixed stackName for the cloudFormation getId method.
  • Used provider.stage for the websocket API with the EDGE endpoint and tls_1_2.

[6.3.2] - 2023-02-9

Fixed

  • Divided a mixed SDK API Gateway versions usage. Now for the EDGE endpoint type or TLS 1.0 will be used only APIGateway V1 and APIGateway V2 for other cases.

[6.3.1] - 2023-02-08

Fixed

  • Disabled support for the custom stage for HTTP API as it's not working properly.

[6.3.0] - 2023-02-06

Added

  • Added support for the custom stage for HTTP API.

[6.2.4] - 2023-02-03

Fixed

  • Improved certificate searching. Thank you @tomsaleeba (529)

[6.2.3] - 2023-02-02

Fixed

  • Updated the README.md and cloudformation config example with the proper permissions. Thank you @delenamalan (541)

[6.2.2] - 2023-02-01

Fixed

  • Fixed getCustomDomainInfo function to different APIGateway versions. Thank you @aalongkott (537)

[6.2.1] - 2022-11-28

Fixed

  • Fixed hostedZonePrivate parameter is not honoured.

Added

  • Added node 18.x check

[6.2.0] - 2022-10-28

Added

  • Added support for split horizon dns support. Thank you @overbit (518)

[6.1.0] - 2022-08-10

Added

  • Added support for mutual TLS authentication for regional APIs. Thank you @cjuega (505)

Changed

  • Dropped Node v12 support
  • Fixed get paged result for listHostedZones
  • Refactoring

[6.0.4] - 2022-08-04

Fixed

  • Enabled declaration option in tsconfig.json. Thank you @estahn (506)
  • Use uppercase consistently for endpoint type. Thank you @dnicolson (511)
  • ACM permission. Thank you @kevinle-1 (508)
  • Removed peerDependencies
  • Replaced - with \n for the printing summary

[6.0.3] - 2022-04-13

Fixed

  • Added AWS certificate check for expiry date before trying to use it. Thank you @tomsaleeba (493)

[6.0.2] - 2022-02-11

Fixed

  • Fixed compiledCloudFormationTemplate output creation.

[6.0.1] - 2022-02-07

Fixed

  • Fixed issue with printing a summary with empty summary list.

[6.0.0] - 2022-02-03

Changed

  • Updated dependency to work with Serverless V3. Releasing a new major version in case there are any issues that weren't caught in our testing.
  • Logging improvements

[5.8.0] - 2022-01-27

Added

  • Added an option to disable IPv6. Thank you @davehensley (365)

[5.7.0] - 2022-01-27

Added

  • Added tagging of apiGateway custom domain. Thank you @fdobrovolny (328)

Changed

  • Refactoring of the code

[5.6.0] - 2022-01-26

Added

  • Added config option to avoid automatically deleting an APIGW domain when other base path mappings exist. Thank you @straticJeff (389)

[5.5.0] - 2022-01-24

Added

  • Added proxy support. Thank you @mscharp (405)
  • Enabled dependabot

Fixed

  • Fixed issue with disabling createRoute53Record. Thank you @albinlundmark (476)

Changed

  • Cleaned up getRoute53HostedZoneId. Thatnk you @codyseibert (261)

[5.4.1] - 2022-01-21

Fixed

  • Fixed route53 resource creation.

[5.4.0] - 2022-01-20

Added

  • Added custom route53 profile options. Thank you @CodeVision (393)

[5.3.2] - 2022-01-19

Added

  • Added logs for Serverless Framework v3. Thank you @medikoo (448)

[5.3.1] - 2022-01-18

Changed

  • Updated output for compiledCloudFormationTemplate. Thank you @nalbion (442)

Fixed

  • Fixed Route53 creation for create_domain action.

[5.3.0] - 2022-01-14

Added

  • Added support of Serverless version 3. Thank you @medikoo (449)

Changed

  • Integration test refactoring

[5.2.0] - 2021-11-10

Added

  • Added support latency and weighted routing. Thank you @clintadams-sg (#439)

[5.1.5] - 2021-08-03

Changed

  • Updated CHANGELOG.md and README files

[5.1.4] - 2021-07-19

Added

  • Added error logging for getDomainName API fail. Thank you @adamrhunter (#434)

[5.1.3] - 2021-07-19

Fixed

  • Fixed filtering of stacks by the given stackName and check by the nested stack RootId. Thank you @matteobattista (#427)

Changed

  • Refactoring. Packages updating

[5.1.2] - 2021-07-16

Fixed

  • Fixed package publishing

[5.1.1] - 2021-07-16

Added

  • Registered serverless as peer dependency. Thank you @medikoo (#424)

Changed

  • Replaced Travis with Github Actions

[5.1.0] - 2020-11-04

Changed

  • Disabled insensitive error logging for SLS_DEBUG off

Fixed

  • Fixed getting an api id for different types of the API gateway (#366)

[5.0.0] - 2020-09-23

Added

  • Added support for Multiple domains. Thank you @ConradKurth (#327). Support for multiple domains led to lots of refactoring. Releasing a new major version in case there are any issues that weren't caught in our testing.

[4.2.3] - 2020-09-18

Added

  • Added support for using CloudFormation nested stacks. Thank you @Katafalkas (#235)

[4.2.2] - 2020-09-16

Changed

  • Fix for package build. Thank you @michaelgmcd (#382)

[4.2.1] - 2020-09-16

Added

  • Added support for using CloudFormation Fn::ImportValue. Thank you @sampsasaarela (#220)

[4.2.0] - 2020-07-14

Added

  • Added support for automatically creating/destroying custom domains on deploy/remove via the autoDomain option. Thank you @bryan-hunter (#356)

[4.1.1] - 2020-05-25

Changed

  • Fix support for TLS 1.0 regional domains which were broken in the 4.0.0 release. Discovered by @jufemaiz (#348)

[4.1.0] - 2020-05-18

Changed

  • Fixed issue when there are multiple pages of base path mappings. Also refactored how paging is handled throughout the code. Thanks @kzhou57 for discovering this (#345)

[4.0.1] - 2020-05-12

Changed

  • Fix issue updating domains that use a blank base path. Thanks @fabiancook (#337)

[4.0.0] - 2020-05-06

Breaking Changes

  • Regional domains with TLS 1.0 no longer work. Fixed in 4.1.1

Added

  • Add support for WebSocket and HTTP APIs. A domain name can be created for each API type (Rest, WebSocket, HTTP) for up to 3 domain names in a single Serverless config. Thanks @TehNrd (#319)

[3.3.2] - 2020-04-21

Changed

  • Fix CloudFormation stack's Outputs. Thanks @davidrosson (#320)
  • Use pagination when there are too many certificates. Thanks @cbm-gplassard (#315)

[3.3.1] - 2020-01-16

Changed

  • Fix AWS SDK initialization after internal change in serverless. Thanks @medikoo (#307)

[3.3.0] - 2019-08-12

Added

  • Add ability to choose TLS version. Thanks @drexler (#240)

[3.2.7] - 2019-08-02

Added

  • Add our own configuration for AWS SDK's built in retry mechanism, increasing it from per service default retries to 20 so that this plugin is more easily used in an automated environment.

[3.2.6] - 2019-06-24

Added

  • Add hosted zone to domain summary

[3.2.5] - 2019-06-24

Added

  • Add iam:CreateServiceLinkedRole to CloudFormation template

[3.2.4] - 2019-06-24

Changed

  • Update the minimum required permissions to run the serverless domain manager plugin to include `apigateway:PATCH

[3.2.3] - 2019-06-24

Changed

  • Fixed npm package security vulnerabilities

[3.2.2] - 2019-05-15

Changed

  • Move chai-spies and node types to dev dependencies

[3.2.1] - 2019-03-22

Added

  • Display error messages from AWS if SLS_DEBUG is set
  • Updated README with behavior change and required permissions

[3.2.0] - 2019-03-22

Added

  • Create AAAA Alias for IPv6 Support

[3.1.0] - 2019-03-01

Added

  • Add Issue Templates
  • Add PR Templates

Changed

  • Fixed issue where creating a domain was no longer idempotent in 3.0.4
  • Fixed issue where deploying was no longer idempotent in 3.0.4 due to basepath mapping creation
  • Fixed issue where deploying would break on occasion if more than 100 CloudFormation resources existed

[3.0.2 - 3.0.4] - 2019-02-06

  • Fix Travis configuration

[3.0.1] - 2019-02-04

  • Version bump to fix NPM versioning issue that occured while testing.

[3.0.0] - 2019-02-04

Changed

  • Refactored from Javascript into Typescript
  • Created BasePathMapping through API rather than through CloudFormation

Removed

  • Support for migrating CNAMEs to A Alias Records
    • In 1.0, we only created CNAME records. In 2.0 we deprecated CNAME creation and started creating A Alias records and migrated CNAME records to A Alias records. Now in 3.0, we only create A Alias records.

[2.6.13] - 2019-01-25

Added

  • Created integration test for custom API field being set.

[2.6.12] - 2019-01-18

Changed

  • Implemented a better hosted zone matching algorithm to break domain into parts.

[2.6.11] - 2019-01-10

Changed

  • Fixes bug where having any custom data defined in provider data will trigger a ValidationError because the existing API id is null or undefined.

[2.6.10] - 2018-12-17

Added

  • Integration test to replicate issue where basepath mapping is not set when recreating a domain.

Changed

  • Separated out sls commands in utility functions for integration tests.

[2.6.9] - 2018-12-17

Added

  • Check to ensure plugin configuration exists and throw an error if it does not.

Changed

  • Updated unit tests.

[2.6.7] - 2018-11-28

Added

  • Added integration tests.

[2.6.6] - 2018-11-07

Changed

  • Updated certificate selection to only use unexpired certificates.

[2.6.5] - 2018-08-27

Changed

[2.6.4] - 2018-08-27

Changed

  • Allowed enabled option to accept strings as well as booleans.
  • Updated unit tests.
  • Updated README to reflect changes made to the enabled option.

[2.6.3] - 2018-08-02

Changed

  • Updated README to reflect the current behavior of creating A Alias records instead of CNAMEs.

[2.6.2] - 2018-07-25

Added

  • This CHANGELOG file to make it easier for future updates to be documented. Sadly, will not be going back to document changes made for previous versions.

[2.6.1] - 2018-07-25

Changed

  • Added single quotes to certificateName in README