Skip to content

feat: make dynamic locations & server types on Hetzner template#618

Merged
DevelopmentCats merged 6 commits intocoder:mainfrom
alexevladgabriel:feat/hetzner-cloud
Jan 6, 2026
Merged

feat: make dynamic locations & server types on Hetzner template#618
DevelopmentCats merged 6 commits intocoder:mainfrom
alexevladgabriel:feat/hetzner-cloud

Conversation

@alexevladgabriel
Copy link
Copy Markdown
Contributor

Description

Make Server Types & Locations dynamic based on API endpoints provided by Hetzner Docs.

Type of Change

  • New module
  • New template
  • Bug fix
  • Feature/enhancement
  • Documentation
  • Other

Template Information

Path: registry/Excellencedev/templates/hetzner-linux

Testing & Validation

  • Tests pass (bun test)
  • Code formatted (bun fmt)
  • Changes tested locally

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR modernizes the Hetzner template by replacing static location and server type configurations with dynamic data fetched from Hetzner Cloud API endpoints. This eliminates the need for manual maintenance of a local JSON file and ensures the template always reflects current Hetzner offerings.

Key Changes:

  • Added hashicorp/http provider to fetch data from Hetzner Cloud API
  • Replaced static location options with dynamic options built from API response
  • Replaced JSON file-based server types with dynamic API-fetched data
  • Implemented filtering to exclude deprecated server types automatically

Comment thread registry/Excellencedev/templates/hetzner-linux/main.tf Outdated
Comment thread registry/Excellencedev/templates/hetzner-linux/main.tf
Comment thread registry/Excellencedev/templates/hetzner-linux/main.tf
Comment thread registry/Excellencedev/templates/hetzner-linux/main.tf
alexevladgabriel and others added 2 commits December 21, 2025 17:24
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@DevelopmentCats DevelopmentCats self-requested a review December 22, 2025 21:17
Copy link
Copy Markdown
Collaborator

@DevelopmentCats DevelopmentCats left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works perfectly for me after testing this

@DevelopmentCats DevelopmentCats merged commit 60611ed into coder:main Jan 6, 2026
4 checks passed
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.

3 participants