Activating a scan type
You can activate a new Amazon Inspector scan type at any time. Once a scan type is activated, Amazon Inspector will immediately begin scanning eligible resources for that scan type. For an overview of the available scan types see Overview of Amazon Inspector scan types. The following describes what happens when you first activate each scan type:
-
Amazon EC2 scanning — When you activate Amazon Inspector Amazon EC2 scanning for an account, Amazon Inspector scans all eligible instances in your account for package vulnerabilities and network reachability issues. The Amazon Inspector SSM plug-in is installed on all your SSM-managed Windows hosts. For more information, see Scanning Windows instances. Additionally, The following SSM associations used by Amazon Inspector are created:
-
InspectorDistributor-do-not-delete
-
InspectorInventoryCollection-do-not-delete
-
InspectorLinuxDistributor-do-not-delete
-
InvokeInspectorLinuxSsmPlugin-do-not-delete
-
InvokeInspectorSsmPlugin-do-not-delete
.
-
-
Amazon ECR scanning — When you activate Amazon ECR container image scanning for an account, the Amazon ECR scan type for private repositories in that account changes from Basic scanning with Amazon ECR to Enhanced scanning with Amazon Inspector. Then all eligible Amazon ECR container images pushed within the last 30 days are scanned for package vulnerabilities. Additionally your Amazon ECR automated rescan duration is set to Lifetime.
-
Lambda standard scanning — When you activate Lambda standard scanning in an account, all Lambda functions in your account that were invoked or updated in the last 90 days are scanned for package vulnerabilities. Additionally a CloudTrail service linked channel is created in your account.
-
Lambda standard scanning + Lambda code scanning — These Lambda function scan types are activated together. When you activate Lambda code scanning in an account, all Lambda functions in your account that were invoked or updated in the last 90 days are scanned for code vulnerabilities.
Activating scans
If you are the delegated administrator for Amazon Inspector in an AWS organization you can
enable various Amazon Inspector scan types for multiple accounts in multiple Regions
automatically using a shell script developed by Amazon Inspector inspector2-enablement-with-cli