Those who have been using Terraform might already know that you can create multiple numbers of the same resources with the help of count or for_each But What if we want to create multiple resources with different configurations at the same time. For example. we can easily create No of[...]
Read moreAuthor: Sarav AK
Terraform AWS EC2 user_data example - aws_instance| Devops Junction
In this article we are going to see how to create AWS EC2 instance with user_data. While launching AWS Ec2 instances we might want to add some customizations to it like adding a key and executing few shell commands or scripts to make sure they are ready to launch your[...]
Read moreConvert Key=Value Pair into JSON with AWK - Shell | Devops Junction
How to convert a key-value pair into JSON. While there are many ways to programmatically do it. I often find myself doing this type of conversion quite often and I looked out for a simple solution. What can be simpler than having it done with the built-in tools of your[...]
Read moreRun AWS CLI commands on All regions - awsall | Devops Junction
What is awsall CLI tool This is a simple solution we have created to execute your AWS CLI commands on all AWS regions without having to mention --region argument all the time. Let's say you want to list the instances as a table with selected fields but you want to[...]
Read moreHow to Get Images of all PODs and Deployments
Let's say you have two similar namespaces in your Kuberentes cluster and you want to compare the images of pods running on both these name spaces. Or Simply want to know what images are being used across the pods (or) deployments in your namespace Of course we are going to[...]
Read moreAnsible Find multiple files with pattern and replace
In this post we are going we are going to see how to find a list of files containing a text or a pattern and replace them at once. As you know I have written a dedicated and brief articles on both Ansible find and replace modules with many examples.[...]
Read moreGithub List All Repositories in Organization or Personal using REST API
I have been trying to get the complete list of Repositories private and public in my github account ( user + Organization ) using GITHUB rest api I had to create a CSV report of All repositories in a specific format like shown below. I have done similar thing earlier[...]
Read moreFind Who owns the Private IP in AWS | DevOps Junction
At times of troubleshooting an issue or doing a forensic on a security incident in your AWS account. Finding who owns Private IP plays a major role. Do you know Almost all the AWS resources like Load Balancers, RDS, EFS has their own private IP address. So how to find[...]
Read moreFind EC2 instances using EFS - EFS Usage Report
Let's suppose that you have an infrastructure of 1000 hosts and you want to know how many of them use EFS - Elastic File System or traditionally known as Network File System Or Let's just say that you have 100 EFS File systems in your AWS account and you want[...]
Read moreAWS CLI List EFS Filesystem sort by Size
In this post we are going to see an aws cli command to list elastic file systems sorted by Size in ascending or descending order. While am sharing all the new tricks in AWS CLI I come across. this is something I have learnt recently There is a dedicated post[...]
Read more