This page explains how to authenticate with the Patterned Designs module registry.

Registry Overview

Patterned Designs modules are hosted at registry.patterneddesigns.ca. To download modules, you need valid credentials.

Configure Terraform

Add the registry configuration to your Terraform CLI configuration file (~/.terraformrc or terraform.rc on Windows):

credentials "registry.patterneddesigns.ca" {
  token = "your-api-token"
}

Environment Variable

Alternatively, use an environment variable:

export TF_TOKEN_registry_patterneddesigns_ca="your-api-token"

CI/CD Configuration

For automated pipelines, inject the token as a secret:

GitHub Actions

env:
  TF_TOKEN_registry_patterneddesigns_ca: ${{ secrets.REGISTRY_TOKEN }}

GitLab CI

variables:
  TF_TOKEN_registry_patterneddesigns_ca: $REGISTRY_TOKEN

Verify Access

Test your authentication:

terraform init

If authentication fails, verify:

  • Token is correctly formatted
  • Token has not expired
  • Network connectivity to the registry

Next Steps