Skip to content

Update Terraform registry links and auto-fetch versions at build time#1210

Open
migara wants to merge 1 commit intomasterfrom
update-terraform-registry-links-and-auto-versions
Open

Update Terraform registry links and auto-fetch versions at build time#1210
migara wants to merge 1 commit intomasterfrom
update-terraform-registry-links-and-auto-versions

Conversation

@migara
Copy link
Copy Markdown
Member

@migara migara commented Apr 17, 2026

Summary

  • Rename module repo links from vmseries-modules to swfw-modules across Terraform landing page constants and auto-generated docs
  • Auto-fetch latest versions from the Terraform Registry API at build time via a new script (scripts/fetchTerraformVersions.js), replacing all hardcoded latestTag values for providers and modules
  • Filter out pre-release versions (e.g. 3.0.0-rc.1) so only stable releases are displayed
  • Graceful fallback: if the registry is unreachable, the build uses the last cached src/data/terraform-versions.json (checked into git)

Test plan

  • Verified node scripts/fetchTerraformVersions.js fetches correct stable versions
  • Confirmed pre-release versions (e.g. swfw-modules/aws v3.0.0-rc.1) are filtered out
  • Run yarn start:netsec and verify the Terraform landing page shows correct version tags
  • Verify yarn build completes successfully with the new fetch step

🤖 Generated with Claude Code

- Rename module repo links from vmseries-modules to swfw-modules
- Add build-time script to fetch latest stable versions from the Terraform
  Registry API, filtering out pre-release versions
- Replace hardcoded latestTag values with dynamic lookups from fetched JSON
- Hook the fetch script into the getAllFeeds build step

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@migara migara requested a review from a team as a code owner April 17, 2026 11:38
@github-actions
Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit 2332145):

https://pan-dev-f1b58--pr1210-c980fqkp.web.app

(expires Fri, 24 Apr 2026 11:47:45 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 9359a9fa100d5fdb082f75280473a90b1f96eb51

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

Successfully merging this pull request may close these issues.

1 participant