Getting started with Amazon Inspector policies
Before you configure Amazon Inspector policies, ensure you understand the prerequisites and implementation requirements. This topic guides you through the process of setting up and managing these policies in your organization.
Learn about required permissions
To enable or attach Amazon Inspector policies, you must have the following permissions in the management account:
-
organizations:EnableAWSServiceAccessforinspector2.amazonaws.com -
organizations:RegisterDelegatedAdministratorforinspector2.amazonaws.com -
organizations:AttachPolicy,organizations:CreatePolicy,organizations:DescribeEffectivePolicy -
inspector2:Enable(for management account and delegated admin)
Before you begin
Review the following requirements before implementing Amazon Inspector policies:
-
Your account must be part of an Amazon organization
-
You must be signed in as either:
-
The management account for the organization
-
An Amazon Organizations delegated administrator with permissions to manage Amazon Inspector policies
-
-
You must enable trusted access for Amazon Inspector in your organization
-
You must enable the Amazon Inspector policy type in the root of your organization
Additionally, verify that:
-
Amazon Inspector is supported in the Regions where you want to apply policies
-
You have the
AWSServiceRoleForInspectorV2service-linked role configured in your management account. To verify this role exists, runaws iam get-role --role-name AWSServiceRoleForInspectorV2. If you need to create this role, you can either runaws inspector2 enablein any Region from your management account, or create it directly by runningaws iam create-service-linked-role --aws-service-name inspector2.amazonaws.com.
Implementation steps
To implement Amazon Inspector policies effectively, follow these steps in sequence. Each step ensures proper configuration and helps prevent common issues during setup. The management account or delegated administrator can perform these steps through the Amazon Organizations console, Amazon Command Line Interface (Amazon CLI), or Amazon SDKs.
Create an Amazon Inspector policy
Minimum permissions
To create an Amazon Inspector policy, you need the following permission:
-
organizations:CreatePolicy
Amazon Management Console
To create an Amazon Inspector policy
-
Sign in to the Amazon Organizations console
. You must sign in as an IAM user, assume an IAM role, or sign in as the root user (not recommended) in the organization’s management account. -
Set a delegated administrator for the service in use within Amazon Inspector console.
-
Once the delegated administrator has been set up for Amazon Inspector, visit Amazon organization console to set up the policies. On Amazon organization console, visit the Amazon Inspector Policies page, choose Create policy.
-
On the Create new Amazon Inspector policy page, enter a Policy name and an optional Policy description.
-
(Optional) You can add one or more tags to the policy by choosing Add tag and then entering a key and an optional value. Leaving the value blank sets it to an empty string; it isn't
null. You can attach up to 50 tags to a policy. For more information, see Tagging Amazon Organizations resources. -
Enter or paste the policy text in the JSON code box. For information about the Amazon Inspector policy syntax, and example policies you can use as a starting point, see Amazon Inspector policy syntax and examples.
-
When you're finished editing your policy, choose Create policy at the lower-right corner of the page.