- Notifications
You must be signed in to change notification settings - Fork72
feat: Add Scaleway Instance Template#449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
The agent token was being set as a shell variable but not exportedto the environment, causing the coder agent to fail with "CODER_AGENT_TOKENmust be set" error during cloud-init execution.
There was a problem hiding this 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 |
Description
Adds a template forScaleway workspaces with a virtual instance backing it
Type of Change
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
bun test
)bun run fmt
)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