Launching instances using the AWS Web-UI is easy enough, but how about the good old method of using the command line ?
Read along to learn how to do the following AWS actions using the CLI:
Often we are in situations where we’re trying to group things into a certain source or type to make understanding it much easier. This could be aggregating different shades of colors to a primary shade, arranging clothes into their correct collections, or in a business standpoint — arranging customers into certain clusters based on their interests and habits.
A cluster can be broadly defined as a group or collection of items. In the world of Data Science and Machine Learning these grouped items which are similar to each other, can be used to classify items. …
Python provides many libraries for fun projects to be made, so here’s another fun task I did. Though the idea of launching a resource on AWS when your face is recognized might seem pretty random, my intention here is to just show how versatile this language can really be, and also how easy it can be if you just get a small idea about the tit-bits. So let’s get to the fun stuff.
First off, we need the required libraries which are:
numpy. If you don’t have these installed, use pip to install them first.
As random as this might seem, it was strangely satisfying and fun to do. Yes, I sat and just created Numpy arrays with specific RGB values to make 720x720 px images of Minecraft mobs.
Let’s first import the required libraries:
numpy for creating and manipulating arrays,
matplotlib for displaying and saving the data as an image file, and the
random module (this was only used to randomly pick from shades of green for the creeper face).
import numpy as np
import matplotlib.pyplot as plt
creeper = np.full((720,720,3), 255, dtype="uint8")
Here I’m using Numpy to initialize an array (720…
The growth in usage of computer systems and services has made it clear that the need for such systems is established in the daily lives of many people. But along with a good tool, comes the risk and dangers that come with the tool. With the vast and growing network of systems and programs, the practice of Cybersecurity is now a necessity to be able to securely make use of our software and hardware.
Cyberattacks are usually aimed at accessing, changing, or destroying sensitive information; extorting money from users; or interrupting normal business processes
There are various type of cyberattacks…
Docker is a tool that makes it easier to create, deploy, and run applications by using containers. These containers allow packaging an application with needed parts such as libraries and dependencies, and deploy it as a single package. In this simple walkthrough, we’ll try to launch a centos container using docker and then install and run python files in that container. I have used Red Hat Enterprise Linux 8 as my base OS here.
In RHEL8, we need to enable a repository to install packages. To install Docker Comunity Edition (docker-ce) we need to first enable the docker-ce repository, which…
You’ve just started out with Ansible … you’ve made yourself a playbook to install a web server, configure your index.html and other good stuff, but there’s one thing that doesn’t sit well with you … your restart service task runs even when there are no changes to your configuration !!!
This might not seem like a big deal but let’s just aim for perfection and run tasks only when required. A simple way to do this is to use the notify and handlers modules in Ansible.
Just to give some context on my playbook, I’ll be showing how I created…
We use Ansible to automate cloud provisioning, configuration management, deployment and other IT operations by simply writing playbooks. It is an open-source tool that increases our productivity at a large scale, saving us a lot of time and hassle when we need to perform configuration management on multiple nodes.
In this article, we’ll be automating a Hadoop cluster setup with the help of Ansible. To keep things simple, our cluster comprises one VM as our control node for Ansible and two VMs as managed nodes, which will serve as the Name Node and Data Node in the Hadoop Cluster.
When setting up a Hadoop Cluster on AWS, launching more instances as data nodes increases the total storage provided. But what if we need to increase the space provided by an individual Data Node ? This is where we can use the Logical Volume Manager.
Ansible is an open-source tool that provides simple but powerful automation for cross-platform computer support. It is used for application deployment, updates on workstations and servers, cloud provisioning, configuration management, intra-service orchestration, and nearly anything a systems administrator does on a weekly or daily basis. Ansible doesn’t depend on agent software and has no additional security infrastructure, so it’s easy to deploy. It can configure both UNIX-like systems as well as Microsoft Windows.
Ansible is also useful to everyday users. It allows you to configure not just one computer, but potentially a whole network of computers at once, and using…