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
Concept Our CI/CD process should be driven by any change in our Github repository branch. Codepipeline will be listening for a change in our code on github and initiate the CI/CD process. Create CodePipeline One more steps and our sweet CI/CD is done and dusted. Go to CodePipeline from AWS
We have successfully created our rails application with Docker and Docker Compose along with MYSQL and Sidekiq (using redis) for our development environment. Now we plan to put our website on AWS using (ECR, ECS, RDS, Elastic Cache and Load Balancer etc). Disclaimer: We will do a lot of configuration
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
Create RDS Database Find and select the RDS service under the service tab. Click on create database. Follow the instructions below: Before we begin, please change things such as database size, names and other identifiers as per your requirements we will be choosing your database name, username and password, Please
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
Create Load Balancer In this article, we will create the Load Balancer which will sit on top on Rails instances and balance the load as per increasing the requests from users. The ultimate reason for this approach is to make your website scalable and always available for our clients. From
Build and Tag Rails Docker project As we have already set up our WordPress Docker project in Create and Dockerize rails application with MYSQL and Sidekiq (Docker + Docker Compose) article. Its time to tag and push our Rails project to AWS ECR. You can also download the Docker Rails
In this article, we will prepare our IAM User and attach Amazon Elastic Container Registry (ECR) policy to it. It will help us to push our local Dockerized Rails project to AWS ECR. Create ECR Policy Login to your AWS console search IAM from the service tab and it will