prowler on CentOS7
I’ve been experimenting with tools for benchmarking AWS deployments. One tool I experimented with is (prowler)[https://github.com/toniblyx/prowler]. However, it doesn’t seem to run nicely under Windows unless you have cygwin.
After a few failures, I decided to just install CentOS 7 into Hyper-V (mostly because I hadn’t tried to run CentOS in Hyper-V and was curious what I would find). Well, it was more complex than I thought. For reference, the particular version I had was:
$ cat /etc/centos-release
CentOS Linux release 7.6.1810 (Core)
After installing CentOS into Hyper-V, you need to setup networking. There is a good (Stack Overflow post)[https://unix.stackexchange.com/questions/17436/centos-on-hyperv-eth0-not-in-ifconfig] on how to do this.
- Search and download Linux Integration Disk. I downloaded the ISO.
- Connect the ISO with Hyper-V.
- Mount the ISO:
sudo mount /dev/cdrom /media
- Run the install script
sudo /media/install.sh
- Edit
/etc/sysconfig/network-scripts/ifcfg-eth0
so that it contains at least the following:DEVICE=eth0 BOOTPROTO=dhcp ONBOOT=yes
- Edit
/etc/sysconfig/network
so that it contains at least the following:NETWORKING=yes HOSTNAME=your.choise.lan
- Reboot with
reboot
Next, install pip
, git
, and the aws cli
- Update yum
yum -y update
- Enable EPEL by installing the yum package
yum -y install epel-release
- Install
pip
from yumyum -y install python-pip git
- Install the AWS CLI
pip install awscli
Configure AWS CLI in the usual way with
aws configure
Next install prowler
git clone https://github.com/Alfresco/prowler
cd prowler
And finally run prowler
./prowler