In this article, I am going to discuss how we can keep safe our terraform state file using terraform cloud. As a pioneer/Practioner of Terraform CLI, we hold responsible for Terraform state file which is the source of truth for our infrastructure. What if we lose this state file or[...]
Read moreAuthor: Sarav AK
AWS Lambda Python Example - With ALB Integration | Devops Junction
In this article, we are going to see how you can deploy your simple python application to AWS Lambda and access it publically using an Application Load balancer. Lambda is a great feature from AWS to host your source code without having to worry about setting up server infrastructure. It[...]
Read moreHow to Block IP in AWS VPC - by IP or CIDR Range | Devops Junction
Let's suppose your AWS infrastructure is under DDOS attack and your Load balancers and Applications are flooded with requests. The Immediate action you can take is to block the IP you have identified. If you have monitoring tools and Log management tools like Datadog, EFK, Splunk etc. they can be[...]
Read moreList Elastic Cache Connections using redis-cli & VPC flow logs | AWS
Elastic Cache Redis is one of the most used AWS managed services so no implementation and backup and maintenance hassles but at times you might need to some monitoring or auditing. Let's suppose you want to list all the connections to the REDIS cache to find out which applications are[...]
Read moreAnsible Split Examples - With String, List and File Content
Ansible Automation is really powerful with its filters and functions. It does provide various string manipulation and formatting filters from Jinja and Python. In this article, we are going to see how to Split strings in Ansible. As you might have already guessed, Ansible provides filters/functions to ease our job.[...]
Read moreAnsible Map Examples - Filter List and Dictionaries | Devops Junction
In this article, we are going to see the various use cases of Ansible Map Function or Filter. As Ansible Official documentation claims, All Jinja2 Filters can be used within Ansible. One such function or filter is map It helps us to filter and iterate complex datasets and a list[...]
Read moreAnsible selectattr Example - Filter dictionary and select matching item
Ansible selectattr filter is to select matching objects from the dictionary by applying a test across all the objects in a dictionary/sequence. Ansible selectattr filter is basically an inherited version of Jinja selectattr filter. As Ansible Quotes in their documentation besides the built-in Ansible filters, all JINJA2 filters can be[...]
Read moreHow to use Ansible with Windows Host - Ansible Windows Example
In this article we are going to see how to use Ansible with Windows Host. How to Setup Windows machine for Ansible to be able to connect or remote login just like SSH in Linux. While there is a way to use SSH in windows which can be further leveraged[...]
Read moreFind and Replace Default HTML in IIS Windows - Ansible
In this post we are going to see how to handle the Default webpage vulnerability in IIS with Ansible. The Default WebPage Vulnerability is flagged by Security Analysts and Pen testers cause it can reveal that the server is powered by IIS and it would let the hacker to try[...]
Read moreAnsible Playbook to Delete OLD Log files - Windows | Devops Junction
Ansible for Windows has grown a lot from what it used to be, and the number of modules for windows is also increasing steadily. So Ansible is the right choice going forward for Windows Server Automation tasks. Of course, you need to use Powershell commands here and there. but collectively[...]
Read more