It's just a Rails app with some custom buildpacks. I also have a Dockerfile that I'm using to run the tests on GitLab CI, so the app is ready to deploy as a container. I use Sidekiq for background jobs, and I have some scheduled tasks that run once a day.
I'm open to anything, if your setup is fast and stable. CloudWatch, Terraform, ECS, OpsWorks, Chef, Puppet, Ansible, SaltStack, Capistrano, Deis, Flynn, Convox, or whatever else you're using. I'm just looking for some production-ready and battle-tested infrastructure for Rails + Sidekiq.
Does anyone have some config that they're using in production, and wouldn't mind sharing?
Here's what I'm looking for:
* Multi-az VPC for high availability
* RDS (Postgres)
* Elasticache (Redis)
* Autoscaling for Rails app and Sidekiq workers
* Easy way to set up scheduled tasks
* CloudWatch alarms
* A simple way to deploy new code
* Rolling deploys
Nice to have:
* "git push" deploys
* Elasticsearch + Kibana for APM, logging, metrics, etc.
It would be great if someone has already done all of this work and would be willing to share their config. If I can't find anything, I'll open source my setup when it's finished. Segment.io's Stack looks good, but it doesn't seem like it's being maintained [2].
[1] https://github.com/segmentio/stack
[2] https://github.com/segmentio/stack/pull/139