fix(CF Stack): Route53DependencyLambda zone matching logic #103
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adjusts the matching logic present in the
Route53DependencyLambda
section of the CloudFormation Stack.We found that by excluding the
properties.Domain.split(".")
logic and instead simply comparingzone.Name
withproperties.Domain + '.'
we were able to spin up a new instance of Hubs using a sub-domain who's root domain was not hosted on Route53. This means that both Domain Recipe 1 and 2 are able to be used on any given domain name as long as that domain has a Route53 Hosted Zone. It might, we haven't tested it, also mean that the.co.uk
bug should also be fixed.IE:
hubs.mydomain.com
can haveNS
records pointing to a Route53 Hosted Zonemydomain.com
can be hosted with another DNS providerhubs.mydomain.com
can still be used as the external hosted zone when creating a Hubs instancePreviously:
hubs.mydomain.com
andmydomain.com
both had to be hosted via Route53