Skip to content

Commit

Permalink
route53 ttl should be set in seconds (#8)
Browse files Browse the repository at this point in the history
* route53 ttl should be set in seconds

more details in caddy-dns/route53#17

* change deleteRecord and updateRecord too
  • Loading branch information
kwypchlo committed Oct 28, 2021
1 parent 39e18f6 commit dc624ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func (p *Provider) createRecord(ctx context.Context, zoneID string, record libdn
Value: aws.String(record.Value),
},
},
TTL: aws.Int64(int64(record.TTL)),
TTL: aws.Int64(int64(record.TTL.Seconds())),
Type: aws.String(record.Type),
},
},
Expand Down Expand Up @@ -177,7 +177,7 @@ func (p *Provider) updateRecord(ctx context.Context, zoneID string, record libdn
Value: aws.String(record.Value),
},
},
TTL: aws.Int64(int64(record.TTL)),
TTL: aws.Int64(int64(record.TTL.Seconds())),
Type: aws.String(record.Type),
},
},
Expand Down Expand Up @@ -207,7 +207,7 @@ func (p *Provider) deleteRecord(ctx context.Context, zoneID string, record libdn
Value: aws.String(record.Value),
},
},
TTL: aws.Int64(int64(record.TTL)),
TTL: aws.Int64(int64(record.TTL.Seconds())),
Type: aws.String(record.Type),
},
},
Expand Down

0 comments on commit dc624ef

Please sign in to comment.