How it works...
In this recipe, we first created an assessment target. While creating the target, we unchecked Include all EC2 instances in this AWS account and region to not target all instances within our account. We then selected the tag of our EC2 instance. We asked AWS to install the Inspector in all the EC2 machines in this target. To install Inspector agents within an EC2 machine, the EC2 instances should have SSM Agent installed and there should be an IAM role that permits the Run Command. EC2 Windows instances and Amazon Linux instances come with SSM Agent installed.
In addition, we created an assessment template with the assessment target we already selected. We selected all of the rules available, which are Network Reachability-1.1 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access