Module 2 - Running the Inspector Report
In the previous module you created the workshop's environment including EC2 instances running various applications. In this module you will gather the information from the CloudFormation Stack and use it to validate those services are running and run an Inspector Network Reachability report.
Running the Inspector Report
-
Refresh the CloudFormation interface until the Status shows “Create Complete”
-
Click on the Stack Name
-
Go to the Outputs tab of the Stack
-
Copy the DNS names from the Output frame into a text editor window. You can use these to validate the Web servers that should be publically accessible are.
-
The LoadBalancerFullDNS and PoCWebServer1PublicDNS should work.
-
PoCWebServer2PublicDNS should time out.
-
-
Copy the instance ID’s from the Output frame into a text editor window. These will help you when you review the Inspector report.
-
Go to the EC2 console to validate the instances are running.
-
Go to the Inspector console.
Next you will create the Amazon Inspector Targets and Templates. This workshop makes you do this manually to get a feel for how it works, but this can be automated.
First, you create the Assessment Target to include all instances, even those without the agent.
If you have not used Inspector in this region before
You will get a different set of screens. Start by clicking a.) “Getting Started” on the Inspector page, and then b.) “Advanced Setup” on the bottom right to get to the Assessment Target screen – Step 10
-
Click on Assessment Targets. Your window should be similar to the image below.
-
Click “Create”
-
Fill out the screen as follows:
-
Name: {Whatever name you will remember}
-
All Instances: Uncheck the box
-
Use Tags
-
Key: NetworkReachabilityDemo
-
Value: True
-
-
Install Agents: Uncheck the box
Service Linked Role
Inspector may prompt you for permission to create a Service Linked role to give the Inspector service permission to do work on your behalf. Click OK.
-
-
Click “Save”
If you have not used Inspector in this region before
You should click "Next" to get to the Assessment Template screen – Step 14
-
Click on Assessment Templates
-
Click on “Create”
-
Fill out the screen as follows:
-
Name: {Whatever name you will remember}
-
Target Name: {The Assessment Target you just created} - This is only required if you have already used Inspector in this region before. Otherwise this is enabled by default.
-
Rules packages: Select ONLY “Network Reachability-1.1”
-
Duration: “15 minutes”
-
Assessment Schedule: Uncheck the box
-
-
Click the button labelled “Create” or “Create and run”
-
Click on Assessment Runs and then the refresh icon. Your window should be similar to the image below.
-
The status should say “Analyzing” or “Collecting data”
You are now going to publish the report to an SNS topic so you can take action. An SNS topic has been created for you in the CloudFormation Template.
-
Click on Assessment templates
-
Click on the right arrow next to the Assessment your created to expand the options.
-
Click on box under "SNS topics"
-
Click the drop down and select the Topic named {Accountnumber}:InspectorAutomation
-
Deselect all of the events EXCEPT "Findings Reported".
-
Click Save
You have successfully configured Inspector and started an assessment. This assessment can take up to 15 minutes, so now’s a good time for you to review the architecture. The Presentation includes the architecture diagram, the route tables, and the security groups. The Presentation Notes page then walks through the architecture with some probing questions.
You can also choose to skip to Evaluating Findings once the report is complete.