Skip to content

ROUTE53: Allow R53_ALIAS records to enable target health evaluation#2649

Merged
tlimoncelli merged 1 commit intoStackExchange:masterfrom
jonathanbouvier:evaluate_target_health
Nov 27, 2023
Merged

ROUTE53: Allow R53_ALIAS records to enable target health evaluation#2649
tlimoncelli merged 1 commit intoStackExchange:masterfrom
jonathanbouvier:evaluate_target_health

Conversation

@jonathanbouvier
Copy link
Copy Markdown
Contributor

@jonathanbouvier jonathanbouvier commented Nov 25, 2023

R53_ALIAS records have a property which allows them to evaluate target health. This was previously hardcoded to false for all R53_ALIAS records.

This has been added as a new record modifier instead of a new parameter to R53_ALIAS to remain backwards compatible. The previous default behavior has been maintained.

  • Add R53_EVALUATE_TARGET_HEALTH record modifier to enable this behavior
  • Update provider to account for this setting during record conversion
  • Update RecordConfig receivers to allow this setting to be detected during diff
  • Update getZones command to include this setting in dumped config
  • Update tests
  • Update documentation

@tlimoncelli
Copy link
Copy Markdown
Contributor

CC @vatsalyagoel for visibility.

Wow! Jonathan, I gotta say this is an impressive PR! Adding record meta modifiers is not well documented but it looks like you got it all right! Plus you've included documentation and tests! Thanks!

I'll merge this before the next release unless @vatsalyagoel has any comments/corrections.

@jonathanbouvier
Copy link
Copy Markdown
Contributor Author

Thanks @tlimoncelli ! Happy to help.

I'm looking to use dnscontrol to manage some of my more complicated Route53 zones, but I think I'm going to need some additional features in the Route53 provider. Alias target health evaluation was just one of the first challenges I encountered.

Eventually, I'd love to add support for some (or all) of the various routing policies supported by Route53:
https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-policy.html

@tlimoncelli
Copy link
Copy Markdown
Contributor

Oops! I meant to CC @tresni instead of @vatsalyagoel. (Copy-and-paste error!)

@tlimoncelli
Copy link
Copy Markdown
Contributor

Eventually, I'd love to add support for some (or all) of the various routing policies supported by Route53:

Sounds good to me!

Oh, I just noticed one thing I'd like to see added to this PR. Could you add integration tests to integrationTest/integration_test.go? You could probably just add to the existing tests. Search for ROUTE53 features to see them.

R53_ALIAS records have a property which allows them to evaluate target
health. This was previously hardcoded to false for all R53_ALIAS records.

This has been added as a new record modifier instead of a new parameter
to R53_ALIAS to remain backwards compatible. The previous default behavior
has been maintained.

- Add R53_EVALUATE_TARGET_HEALTH record modifier to enable this behavior
- Update provider to account for this setting during record conversion
- Update RecordConfig receivers to allow this setting to be detected during diff
- Update getZones command to include this setting in dumped config
- Update unit tests
- Update integration tests
- Update documentation
@jonathanbouvier
Copy link
Copy Markdown
Contributor Author

Eventually, I'd love to add support for some (or all) of the various routing policies supported by Route53:

Sounds good to me!

Oh, I just noticed one thing I'd like to see added to this PR. Could you add integration tests to integrationTest/integration_test.go? You could probably just add to the existing tests. Search for ROUTE53 features to see them.

I just modified/added integration tests.

go test -provider ROUTE53
PASS
ok  	github.com/StackExchange/dnscontrol/v4/integrationTest	107.350s

@tlimoncelli
Copy link
Copy Markdown
Contributor

Great! Thanks!

@tlimoncelli tlimoncelli changed the title Allow R53_ALIAS records to enable target health evaluation ROUTE53: Allow R53_ALIAS records to enable target health evaluation Nov 27, 2023
@tlimoncelli tlimoncelli merged commit e783d70 into StackExchange:master Nov 27, 2023
@jonathanbouvier jonathanbouvier deleted the evaluate_target_health branch November 28, 2023 01:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants