To begin with, you will need to have an EC2 Linux instance that has access to the internet running within your AWS account. Then follow these steps:
- Connect to your EC2 Linux instance.
- Run either of the following commands to download the script required to install the agent:
wget https://inspector-agent.amazonaws.com/linux/latest/install
curl -O https://inspector-agent.amazonaws.com/linux/latest/install
We get the following output when we execute the wget command:
-
Once it is downloaded, you then need to run the script by entering the sudo bash install command, and you will get the following output:
Now the agent is installed, let’s now go ahead and configure Amazon Inspector to perform a vulnerability scan on the EC2 instance.