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

Unhelpful error message when deploying Cloudflare::Dns::Record #25

Open
stevengubler opened this issue Dec 16, 2024 · 0 comments
Open

Comments

@stevengubler
Copy link

stevengubler commented Dec 16, 2024

While deploying a Cloudflare::Dns::Record resource, the Cloudformation console gives me the following error, (with the request token redacted):

Resource handler returned message: "Cannot read property 'length' of undefined" (RequestToken: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX, HandlerErrorCode: InternalFailure)

It's possible I've done something incorrect, but nothing from the error is actionable. It is difficult to know what to do about it without more information.

Diagnostic information:

  • Version: 1.1.0
  • Region: us-east-1
  • Type configuration, (with the name of the secret redacted):
    {
        "CloudflareAccess": {
            "ApiKey": "{{resolve:secretsmanager:XXXXXXXX}}",
            "Url": "https://api.cloudflare.com/client/v4"
        }
    }
  • Cloudformation code, (rendered, reduced, and redacted):
    {
      "Properties": {
        "Content": { "Fn::GetAtt": "FrontendLoadBalancer.DNSName" },
        "Name": { "Fn::Sub": "${Subdomain}.${ZoneDomainName}" },
        "Proxied": true,
        "Ttl": 1,
        "Type": "CNAME",
        "ZoneId": { "Ref": "ZoneId"}
      },
      "Type": "Cloudflare::Dns::Record"
    }

Like I said earlier, I might be doing something wrong; however, even if that's the case, I would still think it's a bug that a better error isn't being reported.

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

1 participant