caddy-dns / route53

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

fix: upgrade libdns/route53 #22

Closed aymanbagabas closed 2 years ago

aymanbagabas commented 2 years ago

Fixes: https://github.com/caddy-dns/route53/issues/21 Fixes: https://github.com/caddy-dns/route53/issues/19 Fixes: https://github.com/caddy-dns/route53/issues/15

aymanbagabas commented 2 years ago

To test this, clone upgrade and build caddy with:

xcaddy build v2.5.1 \
        --with github.com/caddy-dns/route53@latest=./

sample config:

{
    "apps": {
        "http": {
            "servers": {
                "example": {
                    "listen": [
                        ":80",
                        ":443"
                    ],
                    "routes": [
                        {
                            "match": [
                                {
                                    "host": [
                                        "test.example.com"
                                    ]
                                }
                            ],
                            "handle": [
                                {
                                    "handler": "static_response",
                                    "body": "Hello, world!"
                                }
                            ]
                        }
                    ]
                }
            }
        },
        "tls": {
            "automation": {
                "policies": [
                    {
                        "subjects": [
                            "test.example.com"
                        ],
                        "issuers": [
                            {
                                "ca": "https://acme-staging-v02.api.letsencrypt.org/directory",
                                "module": "acme",
                                "challenges": {
                                    "dns": {
                                        "provider": {
                                            "name": "route53"
                                        }
                                    }
                                }
                            }
                        ]
                    }
                ]
            }
        }
    }
}

CC: @eth-limo

eth-limo commented 2 years ago

@aymanbagabas Thanks for this. I just tested and it appears to work fine.

aymanbagabas commented 2 years ago

@aymanbagabas Thanks for this. I just tested and it appears to work fine.

Nice! Creating a new release... Thank you!