Author: Akash Priyadarshi

Writing Code in Dim Office

Create a Simple Application Load Balancer in AWS

Reading Time: 3 minutes Hi all, today we are going to create a simple application load balancer in AWS. We will be going to use 2 windows server to achieve this. Our both windows server will be located in two different Availability zones(AZs). Creating Ec2 Instances on AWS First we have to create 2 servers(Windows Server) in two different Availability Zones. I have created it in us-east-1a and us-east-1b Continue Reading

background

How to create AWS SNS using Terraform

Reading Time: 3 minutes Hi all, In this blog we are going to create AWS SNS(Simple Notification Service) using Terraform. We will be going to create SNS topic, then we will also be creating topic subscription using Terraform. Provider Firstly we will be providing the provider details. Here i am going with aws provider with region us-east-1. Resource aws_sns_topic We are going to use one terraform resource known as Continue Reading

How to read from one table and write to another in BigQuery using Apache Beam Dataflow

Reading Time: 5 minutes Ever thought how to read from a table in GCP BigQuery and perform some aggregation on it and finally writing the output in another table using Beam Pipeline? In this blog we will be going to achieve the same using cloud dataflow as runner. This blog will perform the task which will gather the month in which tornado occurred and count the the number of Continue Reading

How to delete unused key pair from AWS using boto3

Reading Time: 3 minutes Hi all, today we are going to perform an automation stuff. Using this script we will be going to delete all unused key pair from our AWS account using boto3. By doing this we can ensure that our AWS account remains secure to some extent. Checking all key pairs Firstly we will be writing code to see our all key pairs that exist with the Continue Reading

How to create alarm over AWS S3 using Terraform

Reading Time: 3 minutes Introduction Hi all, today we are going to learn how to create an alarm over AWS S3 using Terraform. Terraform is IAC(Infrastructure as code) tool. We will be creating a use case such that if no file is received in last 2 hours in our S3 bucket then one alarm will go off and send alert mail on your specified mail address. Terraform Script Provider Continue Reading

aws

How to Implement AWS Crawler using Boto3

Reading Time: 2 minutes Introduction Hi all, today we will be implementing aws crawler using boto3. we are going to code all the stuffs. Creating crawler, starting and deleting it. Crawlers are simply used to create table out of your data. The data can be files in s3 or JDBC or some other connections. We will be using S3 as our connection. Creating AWS Crawler Here, we are using Continue Reading

Programmers working on computer program

How to delete users from AWS using Boto3

Reading Time: 2 minutes Content Hi all, in some cases of automation we need to have a python script which will be executing every hour or once in a day(according to the requirement) which will be deleting user from AWS console. Users will be creating their account using your platform but deleting them will be our’s responsibility. We will be using boto3 which is a aws(amazon web service) software Continue Reading

AWS Cross Region Replication ie CRR using Terraform

Reading Time: 2 minutes Hi guys, today we will be learning how to perform cross region replication ie CRR on aws using terraform. Basically cross region replication is one the many features that aws provides by which you can replicate s3 objects into other aws region’s s3 bucket for reduced latency, security, disaster recovery etc. You can also do it using AWS console but here we will be using Continue Reading

turned on laptop computer

Knife Audit to get used and unused cookbooks from chef server

Reading Time: 2 minutes Hello all, today we are going to do a task related to automation in chef. We are going to create a bash script to get all used and unused cookbooks from chef server using knife audit, and also will be deleting unused cookbooks. We can run this script as cron to achieve full automation. Download and Install Chef Workstation First thing first, we are going Continue Reading

Cloudwatch alarms for memory and disk for AWS Ec2 using Terraform

Reading Time: 2 minutes Hi all, in this post we will be going to learn about what are cloudwatch alarms, how to create cloudwatch alarms using terraform as in many use cases we need to provision infrastructure using IAAC(Infrastructure as a code), here terraform. Introduction Alarm:- In AWS we have concept of cloudwatch alarms from where we can track various metric on our ec2. Using alarm we can keep Continue Reading