How to block public access to an S3 bucket from multiple AWS accounts

To block public access to an S3 bucket from multiple AWS accounts, you can follow these steps: Access Control Policies:Ensure that there are no bucket policies or access control lists (ACLs) that grant public access.Bucket Policy:Attach a bucket policy that explicitly denies all public access. Here’s an example policy: { "Version": "2012-10-17", "Statement": [ { […]

Configuring AWS alerts with ServiceOne

Configuring AWS alerts with ServiceOne involves setting up CloudWatch Alarms to monitor specific metrics and using Simple Notification Service (SNS) to notify ServiceOne of any triggered alerts. This process ensures timely responses to critical events within your AWS environment. In this guide, we’ll walk through each step in detail. Step 1: Create an AWS CloudWatch […]

VI Editor

VI Editor is a powerful and mostly used text editor in Unix operating system. It is known for its efficiency, speed etc. There are few modes in edior. The most common are Insert mode and Command-Line mode. In insert mode, you can insert and edit text which is in file. While the Command-Line mode allows […]

Create a partition using Ansible playbook and extend the same

Below is the playbook which will create a LVM partition. Here, It will create PV, VG and then LVM which will be mounted on /dir. ## To create pv, vg:vg_test, lv:lv_test, filesystem, and mount it on /dir – hosts: server remote_user: ansible become: yes become_method: sudo connection: ssh gather_facts: yes tasks: – name: To create […]

Ansible Tower Installation on CentOS

Ansible tower is web based automation tool which is used to manage your infrastructure. It is based on Ansible’s capabilities and provide some more enhanced features for managing the tasks. You can do whatever can be done by Ansible. Below are the steps to install Ansible Tower on CentOS.Let’s update the OS first and then […]

Puppet Installation and Configure its Agent

Puppet is a powerful tool for automating and managing the configuration of infrastructure and applications. It helps in consistency, reliability, and scalability in their IT environments.For installation of puppetserver and agent. We need to follow below steps. Puppet tool uses a agent to work which will be installed on all clients you want to register. […]

Nagios installation and configuration with NagiosQL

Nagios Installation and Configuration NagiosQL provides a GUI interface to manage your all Nagios configurations. You can add hosts, host groups, contacts, contacts groups, etc. Let’s have a look for its installation and its configuration. Let’s install Nagios core first and then will go ahead with NagiosQL.Step 1: Install required dependencies: We need to install […]

Linux Basic Commands and Description – Part 3

ethtool: # ethtool eth0 (view ethernet device properties) # ethtool -s eth0 autoneg off (make changes in NIC parameter, use "-s") # ethtool -s eth0 speed 100 autoneg off duplex full (change the speed of ethernet card) # ethtool -i eth0 (Display driver settings) # ethtool -a eth0 (Display Auto-negotiation, RX and TX) # ethtool […]

Linux Basic Commands and Description – Part 2

grep Commands: # grep root /etc/passwd (To print lines containing word root) # grep -c root /etc/passwd (To count the no. of lines containing word root) # grep -v root /etc/passwd (To print all lines except containing matched word “root”) # grep -cv root /etc/passwd (To count no. of lines occurred by –v) # grep […]

Some useful “YUM” and “RPM” Commands

some useful “yum” and “rpm” commands: # rpm –checksig <.rpm> (Need to check signature of an rpm) # rpm -ivh <rpm-package> (Installing an rpm package) # rpm -qpR <rpm-package> (Checking dependencies of rpm package before installing it) # rpm -ivh –nodeps <rpm-package> (Installing a rpm without dependencies) # rpm -qa <rpm> (Checking installed rpm) # […]