caddy-dns / route53

Caddy module: dns.providers.route53
MIT License
38 stars 31 forks source link

Update AWS SDKs #41

Closed coel closed 3 months ago

coel commented 3 months ago

Update the AWS SDKs to avoid this issue.

For background, I am building caddy using:

FROM caddy:2.7.6-builder AS builder

RUN xcaddy build master \
    --with github.com/caddy-dns/route53

Then when trying to solve the DNS challenge I receive an error like: [tls.example.com] Obtain: [tls.example.com] solving challenges: presenting for challenge: adding temporary record for zone "example.com.": not found, ResolveEndpointV2 (order=https://acme-v02.api.letsencrypt.org/acme/order/0/0) (ca=https://acme-v02.api.letsencrypt.org/directory)

This lead me to the issue above suggesting it could be caused by a mix of older and newer versions of the AWS SDK.
Looking at libdns/route53, it appears to have relatively newer versions. I don't get the error after these updates.

coel commented 3 months ago

While updating the versions is probably useful, I've resolved my problem by specifying the build from master to specific version:

FROM caddy:2.7.6-builder AS builder

RUN xcaddy build v2.7.6 \
    --with github.com/caddy-dns/route53