configure aws cli for multiple accounts

AWS CLI helps to manage and administrate AWS resources from the command line rather than opening up the AWS management console. AWS CLI is very useful when you lot of automation tasks etc. For example, if you need to stop /start an EC2 instance every day, you can use AWS CLI for that. and place it in a cron job. Check this link to setup aws cli in Linux. If you see the above link it shows you how to configure aws cli for your aws account. Let’s say what…

Read More

how to setup AWS code commit repository

Hi All, This document deals with how to setup code commit repository. AWS code commit is a fully managed service that hosts a secure private git repository. Code commit is a version control system like GitHub, gitlab, subversion. Code commits support to store any format of files such as application source code, application binary, or documents. Code commit doesn’t have any file format restriction. Code commit allows you to work collaboratively with your team. In terms of pricing, aws code commits charge $0 for the first five users for the…

Read More

Setup RabbitMQ Cluster on Ubuntu 18.04

RabbitMQ

RabbitMQ is one of the most widely deployed open source message brokers. It is an implementation of the Advanced Message Queuing Protocol (AMQP) and Streaming Text Oriented Messaging Protocol, Message Queueing Telemetry transport and other protocols via a plugin.RabbitMQ is written in the Erlang programming language, it offers support for client interfaces and libraries for all major programming languages including Python, NodeJS, Java, PHP etc. Now let’s see how to set up a RabbitMQ Cluster on Ubuntu Server.   Prerequisites We need three Ubuntu 18.04 servers, let the IP and…

Read More

how to setup AWS config for your AWS account

Hi All, this document shows you how to setup AWS config for your AWS account. AWS Config provides an inventory of your AWS resources and a history of configuration changes to these resources. Let’s start !!! Prerequisites * AWS admin privilege account Step 1: Log in to the AWS account and Navigate to AWS config service. Step 2: Now click on the get started button to begin the AWS config setup. Step 3: Configure the following, Step 4: Once you provide the above information click on the Next button. Step…

Read More

how to reset the AWS RDS instance password

Hi All, this document shows how to reset the AWS RDS instance password. Amazon Relational Database Service (Amazon RDS) makes it easy to set up, operate, and scale a relational database in the cloud. It provides cost-efficient and resizable capacity while automating time-consuming administration tasks such as hardware provisioning, database setup, patching and backups. It frees you to focus on your applications so you can give them the fast performance, high availability, security and compatibility they need. Configuration Step 1: log in to the AWS management console. Step 2: Select…

Read More

Monitor Containers using cAdvisor

Hi Techrunnr, This document deals with the we looked into how we can use the API built into our containers to gain an insight to what resources our containers are running. Here we are using cAdvisor (Container Advisor) from google to collect the metrics of our containers. cAdvisor running daemon that collects, aggregates, processes, and exports information about running containers cAdvisor written in go language, we can compile our own binary file as well as already compiled file in container, which is already available in Google docker hub Once installation…

Read More

Ansible playbook for MongoDB Replication setup on CentOS7

Hi Techrunnr, this post is regarding mongoDB installation and replica setup with HA using ansible on CentOS7 Prerequisites: 3 servers with CentOS7 operating system Deploy 3 servers in 3 different AZ Python on 3 nodes Ansible on execution server Enable Security groups on each server to communicate with each other Create 3 servers on different AZ Lets say server A <IP1>, server B <IP2>, server C <IP3>, make sure that security groups are enable to allow traffic from each other Edit the /etc/hosts file in 3 nodes, add the IP…

Read More

EC2 Data Lifecycle Manager

Hi All, this document deals with how to set up an EC2 data life cycle manager.Data Lifecycle Manager help you to take a snapshot of the Ec2 instance/Volume and delete the older snapshots after specific days of the retention policy. prerequisites AWS Console access. ConfigurationĀ  Step 1: Login to AWS console and select EC2 from the services list. Step 2: Select the Life cycle manager from elastic Block storage. Step 3: Now you will be able to see the welcome dashboard of Life cycle manager. Step 4: Enter the description…

Read More

Copy s3 bucket contents to another

Hi Techrunnr, this post is regarding copy the contents of s3 bucket to another using aws cli, let’s say we have some contents in bucket1, we want to take daily basis backup to another bucket and we want to maintain a directory structure as month and day basis, so here we go prerequisites: AWS CLI installed AWS Access key and secret key and your account should be able to access both the bucket Login to aws account using below commands: We will create folder with today’s date in the script…

Read More

how to increase the number of nodes in AWS EMR

Hi All, this document deals with how to increase the number of nodes in AWS EMR. Prerequisites Working AWS EMR cluster, if you don’t have to check this link. Configuration Step 1: Login to AWS console and select EMR from the services. Step 2: Choose your cluster. Step 3: In the hardware section there is an option to resize, choose that. Step 4: Now you can see the current worker node, instance count. Step 5: Increase the instance count as per your requirement, In my case, I’m increasing to 3.…

Read More