C
Coder.com•3mo ago
afalzetti

AWS ECS?

Hi, is it possible to run coder's control plane in ECS, and have it provision using Ec2?
9 Replies
Codercord
Codercord•3mo ago
<#1284951284499222773>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Atif
Atif•3mo ago
Yes. Should be possible
afalzetti
afalzettiOP•3mo ago
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?
Atif
Atif•3mo ago
Hi @afalzetti, sorry for not replying early. Do you want to provision docker workspaces with docker running on an EC2 VM while Coder itself is running as an ECS container? There are two ways to achieve that and both of them are documented here.
Phorcys
Phorcys•3mo ago
hey @afalzetti -- any luck?
afalzetti
afalzettiOP•3mo ago
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?
Atif
Atif•3mo ago
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
Atif
Atif•3mo ago
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
From An unknown user
From An unknown user
Phorcys
Phorcys•2mo ago
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?
Want results from more Discord servers?
Add your server