Merge pull request #4962 from fvlaicu/fix-route53-dns-challenge

Route53 challenges: upsert records instead of create
This commit is contained in:
jetstack-bot 2022-03-23 17:29:20 +00:00 committed by GitHub
commit d8fee10ad8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -173,7 +173,7 @@ func NewDNSProvider(accessKeyID, secretAccessKey, hostedZoneID, region, role str
// Present creates a TXT record using the specified parameters
func (r *DNSProvider) Present(domain, fqdn, value string) error {
value = `"` + value + `"`
return r.changeRecord(route53.ChangeActionCreate, fqdn, value, route53TTL)
return r.changeRecord(route53.ChangeActionUpsert, fqdn, value, route53TTL)
}
// CleanUp removes the TXT record matching the specified parameters