Skip to content

Migrating from v2 to v3

Move the v2 route53 block into the first entry of hostedZones. Rename hostedZoneID to id and recordsSet to records. Record names, types, and TTLs carry over directly.

v2

route53:
  hostedZoneID: Z111111EXAMPLE
  recordsSet:
    - name: home.example.org.
      type: A
      ttl: 300

v3

hostedZones:
  - id: Z111111EXAMPLE
    records:
      - name: home.example.org.
        type: A
        ttl: 300

If you configure zones through environment variables, rename them as follows.

v2 variable v3 variable
DDNSR53_ROUTE53_HOSTEDZONEID DDNSR53_HOSTEDZONES_0_ID
DDNSR53_ROUTE53_RECORDSSET_<N>_NAME DDNSR53_HOSTEDZONES_0_RECORDS_<N>_NAME
DDNSR53_ROUTE53_RECORDSSET_<N>_TYPE DDNSR53_HOSTEDZONES_0_RECORDS_<N>_TYPE
DDNSR53_ROUTE53_RECORDSSET_<N>_TTL DDNSR53_HOSTEDZONES_0_RECORDS_<N>_TTL

The 0 after HOSTEDZONES selects the first zone. Keep each record's existing index in place of <N>. For example, the second record in that zone uses DDNSR53_HOSTEDZONES_0_RECORDS_1_NAME for its name.

v3 ignores the old zone settings. Replace them in configuration files, Compose files, and service environments. Define the complete v3 zone list in YAML or in environment variables.

See hosted zones for a two-zone example.