Skip to content

scripts/deploy-custom-dns.sh: 'go build main.go' misses signature.go (build fails) #248

Closed

Description

@scttfrdmn

scripts/deploy-custom-dns.sh builds the Lambda with go build -o bootstrap main.go (single-file build). The dns-updater package is split across main.go + signature.go, so a single-file build fails:

./main.go:294:12: undefined: verifyInstanceIdentitySignature

(verifyInstanceIdentitySignature lives in signature.go.) The script then zips a nonexistent/stale bootstrap.

Fix: go build -o bootstrap . (build the package, not one file). Same one-liner appears around line 100 and again in the build step.

Found while doing the #173 handler deploy (worked around it with a package build + surgical update-function-code). Low-priority but it makes the script unusable as-is. Note also: running the full script creates an API Gateway + an IAM role named SpawnDNSLambdaRole that differ from the live Function-URL setup (role SpawnDNSLambdaExecutionRole, now tofu-managed) — worth reconciling the script with the actual deployed shape, or retiring it in favor of the tofu module + update-function-code.

Activity

  1. added
    bug
    on Jun 25, 2026
  2. added a commit that references this issue on Jun 25, 2026
  3. scttfrdmn commented on Jun 25, 2026

    @scttfrdmn
    ContributorAuthor

    Fixed in #249 (v0.68.0): deploy-custom-dns.sh now builds with go build ..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions