IAM policies and permissions
You configure the following policies and permissions to use flywheels:
-
Configure IAM user permissions for users to access flywheel operations.
-
(Optional) Configure permissions for AWS KMS keys for the data lake.
-
Create a data access role that authorizes Amazon Comprehend to access the data lake.
Configure IAM user permissions
To use flywheel capabilities, add appropriate permissions policies to your AWS Identity and Access Management (IAM) identities (users, groups, and roles).
The following example shows permissions policy to create datasets, to create and manage flywheels, and to run the flywheel.
Example IAM policy to manage flywheels
{ "Effect": "Allow", "Action": [ "comprehend:CreateFlywheel", "comprehend:DeleteFlywheel", "comprehend:UpdateFlywheel", "comprehend:ListFlywheels", "comprehend:DescribeFlywheel", "comprehend:CreateDataset", "comprehend:DescribeDataset", "comprehend:ListDatasets", "comprehend:StartFlywheelIteration", "comprehend:DescribeFlywheelIteration", "comprehend:ListFlywheelIterationHistory" ], "Resource": "*" }
For information about creating IAM policies for Amazon Comprehend, see How Amazon Comprehend works with IAM.
Configure permissions for AWS KMS keys
If you are using AWS KMS keys for your data in the data lake, set up the required permissions. For information, see Permissions required to use KMS encryption .
Create a data access role
You create a data access role in IAM for Amazon Comprehend to access flywheel data in the data lake. If you use the console to create a flywheel, the system can optionally create a new role for this purpose. For more information, see Role-based permissions required for asynchronous operations.