C
Coder.com•4mo ago
cobsten

AWS ECS

Hi, is it possible to run the Coder application, provisioners and workspaces on AWS ECS. The documents appear to be relatively focused on ec2 and eks (kubenetes). We are evaluating at using coder on AWS ECS to reduce maintenance requirements.
13 Replies
Codercord
Codercord•4mo ago
Codercord
Codercord•4mo ago
<#1384440200742309958>
Category
Help needed
Product
Coder (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Scott
Scott•4mo ago
It should be possible, with the Terraform AWS provider.
We are evaluating at using coder on AWS ECS to reduce maintenance requirements.
Can you elaborate on this some more? Because, Coder is only one piece to the development puzzle, namely the control of dev environments. I'd just like you to be clear on what Coder can help you with. You'd still have to contend with the maintenance of a CI/CD and/or gitOps processes and they are just as much, if not more, of a maintenance headache. What Coder can offer is the eradication of having to make sure developer computers are all fitted with the same tools to do the same job, the same way, in a secure manner i.e. the upkeep of safety and standardization on local dev computers.
If that is what you are looking for, Coder can help you for sure. 🙂
Phorcys
Phorcys•4mo ago
(@cobsten)
cobsten
cobstenOP•4mo ago
I would like to know if coder is able to run on AWS ecs using the fargate configuration. Correct me if I'm wrong, from what i have garnered online, it appears that coder and its external provisioner are able to run on AWS using the EC2 configuration but not with the fargate configuration. As far as reducing maintence requirements goes, the more we can leverage on fargate the better
matifali
matifali•4mo ago
Coder can run anywhere any infrastructure. We don't have an example template for that but it should be possible What you need is to pass the CODER_AGENT_TOKEN to the ECS container and run the coder_agent.*.init_script as entrypoint.
cobsten
cobstenOP•4mo ago
Yes, we understand that this may be the case for the workspaces. Are there any references for running external provisioners on AWS ECS?
matifali
matifali•4mo ago
You need to upadte the entrypoint of the container to coder provisioner start and set CODER_URL and CODER_PROVISIONER_DAEMON_KEY use the same ghcr.io/coder/coder image
cobsten
cobstenOP•4mo ago
This may be a little off topic. But may i ask that for a trial licence that I set up locally, is there any way to migrate this to aws so that I may continue to test there ?
Phorcys
Phorcys•4mo ago
hey, i am not sure what you mean, do you already have a trial license and want to reuse it?
cobsten
cobstenOP•4mo ago
Yep that's correct. I have a trial licence for my local installation that I wish to reuse on the aws environment
Phorcys
Phorcys•4mo ago
you should be able to remove it on the old deployment and reuse it let me know if you run into any issues
<Tolsee focus={true} />
What about Fargate?

Did you find this page helpful?