Docker container + redis + mysql deployment on aws

by vaivis   Last Updated August 14, 2019 18:00 PM

I'm trying to deploy php web app(contained in docker image) acompanied with instance of mysql and instance of redis. Public access is required for app instance, but not desired for database and redis. I followed this tutorial, but it seems a bit outdated and I had no luck.

I did create:

  • ECS cluster, task and service(though this part seems a bit too complicated for me to understand)
  • ElastiCache redis instance
  • RDS mysql database instance
  • VCS to contain it all

What I don't understand is interaction between these instances and parameters of their SecurityGroups. I could create EC2 instance and host all services there, but that's not the best way to use aws. Perfect solution would be example CloudFormation template, since down the road I will need multiple such implementations, but any other info, that points me in the right direction will be apreciated.



Related Questions


CloudFormation with an ELB and its public dns

Updated April 02, 2015 19:00 PM