Invalid Configuration: Missing Region

Hello,

I'm trying to set up Traefik as a reverse proxy + route53 dns challenge.
This is set up on an EC2 instance in AWS, which has an IAM profile attached like this one: Amazon Route 53 :: Let’s Encrypt client and ACME library written in Go.

I get this error when running Traefik:

ERR Unable to obtain ACME certificate for domains error="unable to generate a certificate for the domains [***.com]: error: one or more domains had a problem:\n[***.com] [***.com] acme: error presenting token: route53: failed to determine hosted zone ID: operation error Route 53: ListHostedZonesByName, failed to resolve service endpoint, endpoint rule error, Invalid Configuration: Missing Region\n" ACME CA=https://acme-v02.api.letsencrypt.org/directory acmeCA=https://acme-v02.api.letsencrypt.org/directory domains=["***.com"] providerName=myresolver.acme routerName=jenkins@file rule=Host(`***.com`)

I'm running Traefik via systemd:

[Unit]
Description=Traefik
After=network.target

[Service]
ExecStart=/usr/local/bin/traefik --configFile=/etc/traefik/traefik.yml
Restart=on-failure

[Install]
WantedBy=multi-user.target

traefik.yml:

entryPoints:
  web:
    address: ":80"
  websecure:
    address: ":443"

certificatesResolvers:
  myresolver:
    acme:
      email: ***@***com
      storage: acme.json
      dnsChallenge:
        provider: route53
        delayBeforeCheck: 0
        resolvers:
          - "8.8.8.8:53"
          - "8.8.4.4:53"

providers:
  file:
    filename: /etc/traefik/dynamic.yml

dynamic.yml:

http:
  routers:
    jenkins:
      rule: "Host(`***.com`)"
      entryPoints:
        - websecure
      tls:
        certResolver: myresolver
      service: jenkins-service

  services:
    jenkins-service:
      loadBalancer:
        servers:
          - url: "http://127.0.0.1:8080"

Am I missing something?

Adding Environment="AWS_REGION=eu-west-1" to the systemd service fixed it.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.