I'm making some progress learning how to setup an ...
# aws
b
I'm making some progress learning how to setup an ECS cluster. How do I configure a
FargateService
to allow me to ssh into the running container? I assume I need to assign a key pair somehow, but I can't find the right place to do that.
b
Fargate is considered serverless and as such you can't connect to the container
What do you need to do that requires access to the container?
b
Ah, good point! The app I'm running has an admin CLI. Thinking about this more though, I think I'd have to be connected to the host and not actually inside the container itself. The CLI is accessed by
docker run ...
So perhaps Fargate is the wrong way to host this.
s
So perhaps Fargate is the wrong way to host this.
i was about to say this 🙂
b
@bright-scientist-61638 what's the app? does the cli connect to an api?
b
The CLI is accessed via calls to
docker run
e.g. https://docs.datalust.co/docs/running-server-commands
So I think it'll be simpler to just host it on an ordinary EC2 instance.