Create buildspec files AWS CodeDeploy requires a buildspec file for your project. which has all the commands required to build our project and action items required to successfully build and push it to the Deploy stage. We will create two buildspec files for Rails and Sidekiq services. Let’s get our
Create the rails application rails new ecs-rails-application –api -d mysql You can replace ecs-rails-application with whatever name you want for your application You can also download the my repository from github. here is link Docker time Our application is created. Let’s create some other files and folders. cd ecs-rails-application #
As mentioned before, Bastian instance will allow us to connect to our Rails instance, RDS (MYSQL) and Redis cache for sidekiq from our local machine. It can be very handy when it comes to test services or troubleshoot issues. Create Bastian instance In the EC2 console, Click on Key pairs
In this series of articles, we will create a rails application from scratch (you can also apply the same steps for an existing rails application) Before I begin this series, I would like to give credit to Raphael Jambalos who wrote this amazing series of articles in More than “Hello
Create AWS ElasticCache Go to Elastic Cache from your AWS service tab. Click on create Elastic Cache and do the following: We have selected a very small instance as Node type and Number of replicas are also set to 0. Please change these values as per your requirements Create a
In this article, our website will go live with Load Balancer and Autoscalling groups (having multiple Rails instances on demand). This means that AWS can increase the number of Rails instances on demand and it can scale it down too. We will do the following in this article: Create ECS