Coder terminating and re-creating on start?

Hi folks, I've got what I think is a pretty vanilla template set up (AWS EC2 instance) and am seeing some strange behavior: - When I stop a workspace, the instance stops, starts, and then stops again. - When I start the workspace back up, the instance (and its attached volume) is terminated and a new one comes up in its place. Attached is my template file. What am I doing wrong?
2 Replies
mjswensen
mjswensenOP2y ago
I guess the stop-start-stop behavior makes sense given that EC2 has to reboot the instance to set the new user-data (to the shutdown command)… still not sure on the replacement behavior though.
mjswensen
mjswensenOP2y ago
I've tried a few things to no avail. GitHub issue logged: https://github.com/coder/coder/issues/5615
GitHub
Coder unnecessarily replaces EC2 instance on workspace start · Issu...
Steps to reproduce Spin up a new workspace from the template below Do some work in the workspace Stop the workspace (or let it stop automatically) Note in the AWS Console that the EC2 instance asso...
Want results from more Discord servers?
Add your server