AWS ECS?
Hi, is it possible to run coder's control plane in ECS, and have it provision using Ec2?
9 Replies
<#1284951284499222773>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Yes. Should be possible
I tried but it was failing because it couldn't find docker deamon running, I think
I am not sure whether it's possible to disable that behaviour and run commands within the same container? or what would be the recommended path?
hey @afalzetti -- any luck?
sorry I've missed the message. I want to provision EC2 workspaces to the devs, but the control plain I want to run it in ECS Fargate inside a container.
if I have the control plane running in ECS, I understand it won't work the "docker in docker", so I need to use a remote docker host, but what would that host be? If Coder control plane runs in ECS, which is the docker host? 🤔
is docker in docker necessary? can't terraform run in the host container in ECS directly, without the need of docker?
If you want each dev to have an EC2 VM as the workspace then you should look into the AWS-linux template. If you want each dev to have a docker workspace on a single EC2 VM then look into setting up a remote docker host in terraform template
https://coder.com/docs/platforms/docker#using-remote-docker-host
This documents two ways to use a remote docker host with a template
Docker - Coder Docs
Set up Coder with Docker
okay so basically the control plane doesn't have to match the platform you'll be running your workspaces in
you could have your control plane in GCP and use it to provision workspaces in Azure if you really wanted
Docker in Docker is really when you're provisioning your workspaces as Docker containers and want to be able to run the Docker engine inside said containers, which won't be your case if you provision workspaces as EC2 VMs, which is the first thing that Atif suggested
hey @afalzetti, any luck?