Chris2pi
CCoder.com
•Created by Chris2pi on 1/8/2025 in #help
Persistent AWS EBS/EC2 home directory
Problem—When I click restart in the coder web GUI, it recreates my workspace and causes the EBS volume to be recreated, causing me to lose all of the data.
I understand why that is as a terraform recreate is happening.
So, before I go down the rabbit hole of making custom scripts, etc., I just wanted to see if there was an out-of-the-box method from the coder.
I found this doco - https://coder.com/docs/admin/templates/extending-templates/resource-persistence But it doesn't seem right for what I want.
Napkin-style plan for what I think should happen -
The user hits restart.
Recreation happens, but the EBS is detached from the instance.
A new instance spins up and attaches the EBS again.
Source code based on this template - https://github.com/coder/coder/blob/main/examples/templates/aws-linux/main.tf
7 replies
CCoder.com
•Created by Chris2pi on 11/24/2024 in #help
Creating a JupyterLab instance
It might be simple, but I can't get a JupyterLab instance going.
The goal is to spin up an AWS EC2 instance. I can do that with VSCode without issue.
I add the module from here but get a few errors on launch - https://registry.coder.com/modules/jupyterlab
Then I see this doco and it seems to be what the module is meant to do? https://coder.com/docs/admin/templates/extending-templates/web-ides#jupyterlab
Can't get that working either.
I suspect I am confusing the above doco and just using the module incorrectly and mixing it with the vscode out of the box template.
Code below
Overall a end to end template would be nice. Happy to put one together once I understand it better.
7 replies