Skip to content

Creating a K8s Devcontainer Template Step: "Invalid registry module source address" #32

@michaelvp411

Description

@michaelvp411

##Title
Template push fails with "Invalid registry module source address" for jetbrains module

Description

When attempting to push the kubernetes-devcontainer template, the template push fails during the "Detecting persistent resources" phase with an invalid module registry source address error.

Steps to Reproduce

  1. Navigate to the kubernetes-devcontainer template directory
  2. Run coder template push kubernetes-devcontainer -d .
  3. Confirm upload when prompted

Expected Behavior

Template should push successfully without module source address errors.

Actual Behavior

Template push fails with the following error:
==> ⧗ Detecting persistent resources
2025-09-18 18:48:57.303Z Error: Invalid registry module source address
2025-09-18 18:48:57.303Z on main.tf line 437, in module "jetbrains":
2025-09-18 18:48:57.303Z 437: source = "registry.coder.com/modules/coder/jetbrains/coder"
2025-09-18 18:48:57.303Z Failed to parse module registry address: a module registry source address
2025-09-18 18:48:57.303Z must have either three or four slash-separated components.

Environment

  • Coder deployment: EKS cluster
  • Template: kubernetes-devcontainer (from workshop materials)
  • User authenticated successfully via CLI

Additional Context

This appears to be a formatting issue with the module source address in the template. The current format uses 4 components when Terraform expects 3 or 4 in a specific pattern.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions