Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cloudflare dns: After deploy Proxy is set to disabled #374

Open
webdeb opened this issue May 5, 2024 · 2 comments
Open

Cloudflare dns: After deploy Proxy is set to disabled #374

webdeb opened this issue May 5, 2024 · 2 comments
Assignees

Comments

@webdeb
Copy link

webdeb commented May 5, 2024

Hello, I've deployed a cluster to aws, and created the service with public.domain.dns: sst.cloudflare.dns()

In cloudflare the Proxy status is disabled. I can enable it manually, but when I redeploy, the proxy is disabled again, I guess it's always a new entry if some cluster configurations are changed.

Bildschirmfoto 2024-05-05 um 14 50 26

So, after deploy/redeploy the service is unavailable.

@webdeb
Copy link
Author

webdeb commented May 5, 2024

When I set dns.transform.record = { proxied: true, ttl: 1} I get another error:

failed to create DNS record: Target xxx.mhbtsbpdnt.acm-validations.aws. is not allowed for a proxied record. (9003)

@webdeb
Copy link
Author

webdeb commented May 5, 2024

Ok, finally nailed it, but this feels like a hack..

          dns: sst.cloudflare.dns({
            transform: {
              record: (record) => {
                if (record.name === "my.service.com") {
                  record.proxied = true;
                  record.ttl = 1;
                }
              },
            },
          }),

I think it can be considered as a bug, when you set transform record on a public.domain.dns setting and sst uses this transform.record also on the record, which is responsible to confirm the domain ownership.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants