Skip to content

Conversation

mossylion
Copy link

Description

Adds a template for Scaleway workspaces with a virtual instance backing it

Type of Change

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

Template Information

The readme should contain enough info for someone to go from 0 to deployment including required permissions. I couldn't figure out a nicer way of handling dynamic instance type selection so this is part of the template in the form of a json, I've added a command you can run to update this list. This felt nicer than getting the end user to hardcode it or providing a subset or types. Let me know if you'd prefer this was done a different way.

Testing & Validation

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

Screen recording showing a template flow from publish to working workspace

output.mp4

Related Issues

None :) I wanted this so I made it and thought I'd contribute it back

The agent token was being set as a shell variable but not exported
to the environment, causing the coder agent to fail with "CODER_AGENT_TOKEN
must be set" error during cloud-init execution.
@matifali matifali requested a review from Copilot October 3, 2025 12:19
Copy link
Contributor

@Copilot 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 adds a new Scaleway Instance template for creating Coder workspaces on Scaleway cloud infrastructure. The template provides comprehensive support for Scaleway's instance types, regions, and operating systems with persistent storage capabilities.

Key changes include:

  • Complete Terraform configuration for Scaleway workspace provisioning with dual-stack networking and persistent storage
  • Dynamic instance type selection using a comprehensive JSON configuration file
  • Cloud-init scripts for automated agent setup and persistent home directory mounting

Reviewed Changes

Copilot reviewed 6 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
registry/mossylion/README.md New contributor profile with template listing
registry/mossylion/templates/scaleway-instance/README.md Comprehensive documentation with setup instructions and architecture details
registry/mossylion/templates/scaleway-instance/main.tf Main Terraform configuration for Scaleway resources and Coder integration
registry/mossylion/templates/scaleway-instance/scaleway-config.json JSON configuration file containing all available Scaleway instance types
registry/mossylion/templates/scaleway-instance/cloud-init/cloud-config.yaml.tftpl Cloud-init configuration for user setup and persistent storage mounting
registry/mossylion/templates/scaleway-instance/cloud-init/userdata.sh.tftpl Shell script for Coder agent initialization

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