Hello,
I am trying to set up caddy to use route53 and xcaddy is spitting out an error about not finding the ~/.aws/credentials, even though the aws cli finds them just fine.
Below is the error.
2020/12/08 16:33:12 [INFO] Writing main module: /tmp/buildenv_2020-12-08-1633.970086107/main.go
2020/12/08 16:33:12 [INFO] Initializing Go module
2020/12/08 16:33:12 [INFO] exec (timeout=10s): /usr/local/go/bin/go mod init caddy
go: creating new go.mod: module caddy
2020/12/08 16:33:12 [INFO] Replace github.com/caddy-dns/route53 => /home/<user>/.aws/route53
2020/12/08 16:33:12 [INFO] exec (timeout=10s): /usr/local/go/bin/go mod edit -replace github.com/caddy-dns/route53=/home/<user>/.aws/route53
2020/12/08 16:33:12 [INFO] Pinning versions
2020/12/08 16:33:12 [INFO] exec (timeout=0s): /usr/local/go/bin/go get -d -v github.com/caddyserver/caddy/v2
go: github.com/caddyserver/caddy/v2 upgrade => v2.2.2
2020/12/08 16:33:13 [INFO] Build environment ready
2020/12/08 16:33:13 [INFO] Building Caddy
2020/12/08 16:33:13 [INFO] exec (timeout=0s): /usr/local/go/bin/go build -o /home/<user>/.aws/route53/caddy -ldflags -w -s -trimpath
go: found github.com/caddy-dns/route53 in github.com/caddy-dns/route53 v0.0.0-00010101000000-000000000000
# github.com/caddy-dns/route53
/home/ascii17/.aws/route53/route53.go:58:16: p.Provider.AWSProfile undefined (type *"github.com/libdns/route53".Provider has no field or method AWSProfile)
2020/12/08 16:33:14 [INFO] Cleaning up temporary folder: /tmp/buildenv_2020-12-08-1633.970086107
2020/12/08 16:33:14 [ERROR] exit status 2
Here is the process that I used to install xcaddy and tried to install dns.providers.route53go get -u github.com/caddyserver/xcaddy/cmd/xcaddy
Hello, I am trying to set up caddy to use route53 and xcaddy is spitting out an error about not finding the
~/.aws/credentials
, even though the aws cli finds them just fine.Below is the error.
Here is the process that I used to install
xcaddy
and tried to installdns.providers.route53
go get -u github.com/caddyserver/xcaddy/cmd/xcaddy
xcaddy build v2.3.0-beta.1 --with github.com/caddy-dns/route53
At this point
dns.providers.route53
does not show up incaddy list-modules
So I run
xcaddy list-modules
to get that original error message.My OS is as follows:
My Go version is:
And Caddy is: