@@ -39,7 +39,7 @@ import (
39
39
40
40
const (
41
41
defaultAWSProfile = "default"
42
- recordTTL = 300
42
+ defaultTTL = 300
43
43
// From the experiments, it seems that the default MaxItems applied is 100,
44
44
// and that, on the server side, there is a hard limit of 300 elements per page.
45
45
// After a discussion with AWS representatives, clients should accept
@@ -510,7 +510,7 @@ func (p *AWSProvider) records(ctx context.Context, zones map[string]*profiledZon
510
510
if r .AliasTarget != nil {
511
511
// Alias records don't have TTLs so provide the default to match the TXT generation
512
512
if ttl == 0 {
513
- ttl = recordTTL
513
+ ttl = defaultTTL
514
514
}
515
515
ep := endpoint .
516
516
NewEndpointWithTTL (name , string (r .Type ), ttl , * r .AliasTarget .DNSName ).
@@ -804,8 +804,8 @@ func (p *AWSProvider) AdjustEndpoints(endpoints []*endpoint.Endpoint) ([]*endpoi
804
804
805
805
if alias {
806
806
if ep .RecordTTL .IsConfigured () {
807
- log .Debugf ("Modifying endpoint: %v, setting ttl=%v" , ep , recordTTL )
808
- ep .RecordTTL = recordTTL
807
+ log .Debugf ("Modifying endpoint: %v, setting ttl=%v" , ep , defaultTTL )
808
+ ep .RecordTTL = defaultTTL
809
809
}
810
810
if prop , ok := ep .GetProviderSpecificProperty (providerSpecificEvaluateTargetHealth ); ok {
811
811
if prop != "true" && prop != "false" {
@@ -866,7 +866,7 @@ func (p *AWSProvider) newChange(action route53types.ChangeAction, ep *endpoint.E
866
866
change .sizeValues += 1
867
867
} else {
868
868
if ! ep .RecordTTL .IsConfigured () {
869
- change .ResourceRecordSet .TTL = aws .Int64 (recordTTL )
869
+ change .ResourceRecordSet .TTL = aws .Int64 (defaultTTL )
870
870
} else {
871
871
change .ResourceRecordSet .TTL = aws .Int64 (int64 (ep .RecordTTL ))
872
872
}
0 commit comments