awslabs / aws-rails-provisioner

Define and deploy containerized Ruby on Rails Applications on AWS
Apache License 2.0
200 stars 19 forks source link

rails console #1

Open sj26 opened 5 years ago

sj26 commented 5 years ago

This is a great approach to deploying rails on Fargate! But I've always become stuck when trying to figure out how to open a production console. This is a frequently-used diagnostic and migration tool for most rails deployments.

How do you recommend running an interactive rails console in a production environment on Fargate?

cjyclaire commented 5 years ago

Apologies for the delay and appreciate the feedback! As currently it's under developer preview, happy to taking this as an feature task for us to investigate on! Will update once we have discussed some design thoughts.

vamsipavanmahesh commented 3 years ago

@sj26 Were you able to move forward with running the rails console?

sj26 commented 3 years ago

Not using this tool, no. We’re still planning to move to fargate, but probably using custom deployment tooling and will need to invent an ssh-based rails console or something first.

mullermp commented 3 years ago

Last I looked at this, I wasn't sure of a way to do it. I'm open to ideas and pull requests.

sj26 commented 3 years ago

I did a proof of concept which uses an ecs service with a single fargate task running ssh which uses rails console as the shell command, and so you can ssh straight into a rails console. Ideally I'd love to leverage session manager as part of this solution.

In a perfect world, I'd love a way to use session manager to request a rails console, and have it run a fargate task on demand to service the session.