1
0
mirror of https://github.com/github/octodns.git synced 2024-05-11 05:55:00 +00:00
Commit Graph

49 Commits

Author SHA1 Message Date
Ross McFarland
aeb70b2488 Route53Provider python 3, rm incf.countryutils, lots of cmp removal and ordering fixes 2019-10-05 20:01:53 -07:00
Ross McFarland
f252aa3b98 Merge remote-tracking branch 'origin/master' into python3-start 2019-10-05 07:20:47 -07:00
William Blackie
dd4238ad6b fix split calls in Route53Provider to not specify ' ' parameter so they can tolerate multiple sequential separators 2019-08-19 17:06:23 +10:00
Ross McFarland
a9d0eef3ba Lots of text_type 2019-07-29 08:37:47 -07:00
Theo Julienne
1c08a4d58e Adjust Route53 change ordering to strictly order by dependency. 2019-05-28 14:03:33 +10:00
Ross McFarland
ee0416de9a Cover more Route53 extra check edge cases and ensure it tests what we're after 2019-05-14 20:32:36 -07:00
Ross McFarland
d49bf26220 Handle Route53 extra check much more thoroughly by breaking down name
Also adds thorough tests
2019-05-14 20:25:14 -07:00
Ross McFarland
1c60ed018b Make sure both set-id and name match when finding rrset 2019-04-29 09:49:40 -07:00
Ross McFarland
e4fbcf1090 Improved Route53Provider deltion for Dynamic Value too 2019-04-29 09:02:45 -07:00
Ross McFarland
2df87d7dfe Improve Route53 DELETE reliability using existing rrset 2019-04-29 08:52:56 -07:00
Ross McFarland
dbc032a2cc Switch to using tuples for _mod_keyer 2019-04-03 18:58:46 -07:00
Ross McFarland
92179a231e Rework and clean up Route53Provider's extra_changes check to support dynamic 2019-04-03 14:13:23 -07:00
Ross McFarland
af06dbec09 Route53Provider for CNAME style healthchecks
Note that you can't specify a Host header for these which I believe will
complicate the ability to use this. Figuring that out will have to wait
until I or someone else has a use case for these...
2019-04-03 10:29:52 -07:00
Ross McFarland
7b59eedc44 Route53Provider dynamic support 2019-04-01 14:17:59 -07:00
Ross McFarland
0a6b2e2e3b Implement Route53Provider mod ordering via a sort
This will ensure that deletes come before creates which are before upserts and
that records that uses aliases always come after their target (though implicitly
based on sorting types and not explicitly by looking at them.)
2019-04-01 10:09:43 -07:00
Ross McFarland
ed152ce0f3 Plumb hosted_zone_id through to _Route53Record 2019-04-01 09:33:56 -07:00
Ross McFarland
f83eeb0a9c Add a Name tag to Route53 healthchecks for UI purposes 2019-04-01 09:13:57 -07:00
Ross McFarland
b8be28c1dc Rework get_health_check_id, just take value to check 2019-04-01 07:40:23 -07:00
Ross McFarland
d610a0c920 Implement _Route53Record._value_convert_* 2019-04-01 07:25:52 -07:00
Jörg Runkel
c1911c10a3 Some syntax and style improvements 2019-02-13 17:45:23 +01:00
Jörg Runkel
54787529d5 Move measure_latency option to Route53 provider 2019-02-13 10:50:48 +01:00
Jörg Runkel
1794f5ccd6 Add healthcheck option 'measure_latency' for Route53 provider
Route53 allows to monitor latency information on the dashboard
and using CloudWatch. While that is a nice to have function,
it is not necessary for a DNS failover scenario and increases
Route 53 costs.
To maintain backward compatibility, the default for this option
when ommited is true.
2019-02-11 21:25:06 +01:00
Adam Smith
446e8485b3 if user does not explicitly set Access Key ID and Secret Access Key then use
boto3's methods as fallback
2018-06-13 21:18:21 -07:00
Ross McFarland
19956f14bc Include fqdn in Route53 health check refs, not name
This will ensure unique refs for different zones. Without them the ref isn't
enough to make sure we're looking at the right thing (notably when we're
gc'ing old health checks.) This also adds a bit more debugging around health
checks.
2018-04-04 17:38:00 -07:00
Ross McFarland
b51a9148b8 Route53 support for healthcheck protocol & port 2018-03-31 14:47:22 -07:00
Ross McFarland
5372e86e1c Switch to named params in _extra_changes 2018-03-31 12:39:32 -07:00
Dirkjan Bussink
a7f6da96d3 Merge branch 'master' into configurable-geo-healthcheck 2018-03-22 08:51:51 +01:00
Michael McAllister
8c1fe707e8 ISSUE #26 Skip Alias recordset for Route53 Provider 2018-03-04 18:02:51 +11:00
Ross McFarland
7228c5b294 Merge remote-tracking branch 'origin/master' into show-zone-create 2018-03-03 10:18:32 -08:00
Josh Soref
5d2ba2e715 Spelling (#214)
* spelling: ancillary
* spelling: antarctica
* spelling: australia
* spelling: authentication
* spelling: continental
* spelling: constructor
* spelling: conversion
* spelling: creation
* spelling: doesn't
* spelling: easily
* spelling: efficiently
* spelling: equivalent
* spelling: essentially
* spelling: everything
* spelling: exactly
* spelling: be
* spelling: expensive
* spelling: supports
* spelling: healthcheck
* spelling: immediately
* spelling: ignored
* spelling: invocation
* spelling: itself
* spelling: leftovers
* spelling: missing
* spelling: natural
* spelling: nonexistent
* spelling: peculiarities
* spelling: pointing

This change hit a line length limitation, so I'm wrapping it and
adding a period which appears to match local style...

* spelling: quicker
* spelling: response
* spelling: requested
* spelling: redirect
* spelling: traffic
* spelling: unknown
* spelling: uploaded
* spelling: useful
* spelling: separately
* spelling: zone
2018-02-27 09:09:47 -08:00
Ross McFarland
73c002f94c Implement populate exists for Route53Provider 2018-01-21 14:26:51 -08:00
Ross McFarland
9a30b058e2 Merge remote-tracking branch 'origin/master' into configurable-geo-healthcheck 2017-10-18 10:57:32 -07:00
Ross McFarland
c24c793bcb CAA unit tests for provider support 2017-08-26 15:28:09 -07:00
Ross McFarland
268620c939 Add support for increasing Route53 retries 2017-08-12 12:54:53 -07:00
Ross McFarland
908698da49 Fix major performance issue with add_record O(N^2)
Before, 1-2k record took ~10s and more than that was just painful, 5k took
forever. This records things to keep a dict of nodes with a set of records so
that we can quickly "jump" to the point we're looking for without having to
search. 10k records now takes ~5s.
2017-07-02 18:23:45 -07:00
Ross McFarland
1340aee8a9 MX RFC1035 - priority -> preference & value -> exchange 2017-06-23 13:04:38 -07:00
Ross McFarland
d2af8efe5c Root CNAMEs are not allowed 2017-06-23 09:49:11 -07:00
Ross McFarland
a97818b6ec populating existing provider state is lenient
- adds lenient flag to Record.new, problems during validation are just
  warnings if it's true
- target populate calls during the plan phase pass lenient=True
- make all of the provider.populate call logging consistent including both
  target and lenient
- add source=self to Record.new in a few places that were missing it
2017-06-23 09:01:25 -07:00
Ross McFarland
02d80c2e84 Merge remote-tracking branch 'origin/master' into configurable-geo-healthcheck 2017-06-21 15:31:25 -07:00
Ross McFarland
9506c682cc Go head and support cleaning up v0000 Route53 health check versions 2017-06-20 11:46:17 -07:00
Ross McFarland
d0b8b25cdd Existing and desired to _extra_changes, desired used by Route53 to get configed
Fixes an issue where we'd be looking for custom healthcheck config on the
existing record object (from the provider) which would never have a custom
setup. Instead looking at desired lets us find what's actually configured to be
the case
2017-06-20 11:44:13 -07:00
Ross McFarland
97e5b89925 Merge remote-tracking branch 'origin/master' into route53-refactor 2017-06-20 08:18:36 -07:00
Ross McFarland
4761da9c33 Add custom host & path support to Route53 Geo healthchecks
- This reworks the CallerReference structure for Route53 health checks in a
  non-backwards compatible way. This means records will create new healthchecks
  for themselves which should be fine.
- Since we're pre 1.0, support has NOT been added to cleanup the old
  healthchecks. That could be done reasonably easy, BUT we'd have to keep that
  around forever. The hope is that the new ref format/usage will prevent this
  problem going forward since enough info exists in the ref to identify things
  fully. :fingers_crossed:
- healthcheck GC is much cleaner and more robust thanks to ^
- overall the healthcheck management code is a bit easier to follow and more
  robust now.
2017-06-15 09:57:40 -07:00
Ross McFarland
dd0042c6ff Escape unescaped semicolons coming out of Route53 2017-06-08 17:55:19 -07:00
Ross McFarland
a9c6d8c6ba Rework _Route53Record to avoid a bunch of hacks
They were working around the lack of class hierarchy, this addresses that by
adding 2 child classes. It gets rid of a bunch of ugly default params and
if-this junk in the main class that was trying to deal with plain & geo records.
Also as a positive side effect it gets rid of some hacks that lived in
Route53Provider dealing with the fact that the old setup couldn't detect going
to/from a GeoDNS record correctly.
2017-05-29 08:26:38 -07:00
Ross McFarland
852381b810 Add test for Route53Provider geo -> plain conversion 2017-05-09 14:45:35 -07:00
Ross McFarland
d7469cbd0b Test _get_health_check_id without perm to create 2017-05-09 14:26:48 -07:00
Ross McFarland
e7fffb0ca1 Route53Provider correctly handle converting to and from geo records 2017-05-09 14:20:44 -07:00
Ross McFarland
7957a4c018 Initial import of OSS OctoDNS 2017-03-15 15:38:10 -07:00