ion icon indicating copy to clipboard operation
ion copied to clipboard

Outdated Cloudflare DNS Record Args

Open zdenham opened this issue 6 months ago • 0 comments

Error message is here: https://github.com/sst/ion/issues/872

Cloudflare deprecated "value" in favor of "content" in the record object.

See: https://github.com/cloudflare/terraform-provider-cloudflare/issues/3590

The fix for me was

sst.cloudflare.dns({
    transform: {
      record: (args) => {
        // @ts-ignore - types are not up to date
        args.content = args.content || args.value;
        args.value = undefined;
      },
    },
  })

zdenham avatar Aug 17 '24 19:08 zdenham