ion icon indicating copy to clipboard operation
ion copied to clipboard

adds findRecord to cloudflare only

Open MrgSub opened this issue 1 year ago • 2 comments

This PR adds findRecord function to Cloudflare, currently they're the only provider that supports the feature.

Use case: Re-running ion would error if a record already exists, it helps if we can check to avoid this error.

MrgSub avatar Jun 26 '24 23:06 MrgSub

Oh interesting. Let me ask the team to take a look.

jayair avatar Jul 03 '24 23:07 jayair

Thanks @MrgSub!

Pulumi/Terraform provides a way to ignore existing records. You can set it through transform:

sst.cloudflare.dns({
  zone: "415e6f4653b6d95b775d350f32119abb",
  transform: {
    record: {
      allowOverwrite: true,
    }
  }
})

Does that work for you?

fwang avatar Jul 12 '24 07:07 fwang

we are moving sst/ion -> sst/sst and unfortunately this is going to be a messy process because of github's limitations

i'm going to close this PR for now and it can be re-opened in the new sst/sst repo that will be ready in the next few days if still relevant

fwang avatar Oct 16 '24 13:10 fwang