Controlling Access to Amazon Macie Classic - Amazon Macie Classic

This is the user guide for Amazon Macie Classic. For information about the new Amazon Macie, see the Amazon Macie User Guide. To access the Macie Classic console, open the Macie console at https://console.aws.amazon.com/macie/, and then choose Macie Classic in the navigation pane.

Controlling Access to Amazon Macie Classic

AWS uses security credentials to identify you and to grant you access to your AWS resources. You can use features of AWS Identity and Access Management (IAM) to allow other users, services, and applications to use your AWS resources fully or in a limited way. You can do this without sharing your security credentials.

By default, IAM users don't have permission to create, view, or modify AWS resources. To allow an IAM user to access resources such as a load balancer, and to perform tasks, you:

  1. Create an IAM policy that grants the IAM user permission to use the specific resources and API actions they need.

  2. Attach the policy to the IAM user or the group that the IAM user belongs to.

When you attach a policy to a user or group of users, it allows or denies the users permission to perform the specified tasks on the specified resources.

For example, you can use IAM to create users and groups under your AWS account. An IAM user can be a person, a system, or an application. Then you grant permissions to the users and groups to perform specific actions on the specified resources using an IAM policy.

For more information, see the IAM User Guide.

Granting Administrator Access to Macie Classic

Macie Classic administrator account users have access to the Macie Classic console, where they can configure Macie Classic and use it to monitor and protect the resources in both administrator and member accounts. For more information about Macie Classic administrator and member accounts, see Concepts and Terminology and Integrating Member Accounts and Amazon S3 with Amazon Macie Classic.

For Macie Classic administrator account users to be able to use the Macie Classic console, they must be granted the required permissions. To ensure this, use the following policy document to create and attach an IAM policy to any user identity type that belongs to your Macie Classic administrator account. This policy grants administrator account users with the permissions that are required to use the Macie Classic console in its full capacity.

{ "Version":"2012-10-17", "Statement":[ { "Effect": "Allow", "Resource": "*", "Action":[ "macie:*" ] }, { "Effect": "Allow", "Action": "iam:CreateServiceLinkedRole", "Resource": "*", "Condition": { "StringLike": { "iam:AWSServiceName": "macie.amazonaws.com" } } } ] }

Granting Read-Only Access to Macie Classic

For a user to view any data in the Macie Classic console, they must be granted the required permissions. To grant read-only access, create a custom policy using the following policy document and attach it to an IAM user, group, or role. This policy grants users permissions to only view information on the Macie Classic console.

{ "Version": "2012-10-17", "Statement": [ { "Action": [ "macie:List*" ], "Resource": [ "*" ], "Effect": "Allow" } ] }

Predefined AWS Managed Policies for Macie Classic

The managed policies created by AWS grant the required permissions for common use cases. You can attach these policies to IAM users in your AWS account, based on the access to Macie Classic that they require:

  • AmazonMacieFullAccess – Grants full access to Macie Classic

  • AmazonMacieHandshakeRole – Grants permission to create the service-linked role for Macie Classic

The following are legacy policies that have been replaced by a service-linked role. For more information, see Legacy Roles for Macie Classic.

  • AmazonMacieServiceRole – Grants Macie Classic read-only access to resource dependencies in your account in order to enable data analysis

  • AmazonMacieSetupRole – Grants Macie Classic access to your AWS account

Creating a Handshake Role

You can create a role that grants the permissions in the AmazonMacieHandshakeRole policy to Macie Classic from the administrator account as follows.

To create AWSMacieServiceCustomerHandshakeRole using the IAM console

  1. Open the IAM console at https://console.aws.amazon.com/iam/.

  2. In the navigation pane, choose Roles.

  3. Choose Create role and do the following:

    1. For Select type of trusted entity, choose AWS service.

    2. For Choose a use case, select EC2.

    3. Choose Next: Permissions.

  4. On the Attach permissions policies page, select the checkbox for the AmazonMacieHandshakeRole policy and choose Next: Tags.

  5. (Optional) Add tags to your role and then choose Next: Review.

  6. On the Review page, do the following:

    1. For Role name, enter AWSMacieServiceCustomerHandshakeRole.

    2. For Role description, enter the following: Allows the Macie Classic administrator account to create service-linked roles in the member accounts.

    3. Choose Create role.

  7. Edit the trust policy as follows:

    1. Select AWSMacieServiceCustomerHandshakeRole, which you just created.

    2. On the Trust relationships tab, choose Edit trust relationship.

    3. Enter the following trust policy:

      { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "Service": "macie.amazonaws.com" }, "Action": "sts:AssumeRole", "Condition": { "StringEquals": { "sts:ExternalId": "administrator-account-id" } } } ] }
    4. Choose Update Trust Policy.

To create AWSMacieServiceCustomerHandshakeRole using the AWS CLI

  1. Create the following trust policy and save it in a text file named macie-handshake-trust-policy.json.

    { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "Service": "macie.amazonaws.com" }, "Action": "sts:AssumeRole", "Condition": { "StringEquals": { "sts:ExternalId": "administrator-account-id" } } } ] }
  2. Create the role and specify the trust policy that you created in the previous step using the create-role command.

    aws iam create-role --role-name AWSMacieServiceCustomerHandshakeRole --assume-role-policy-document file://macie-handshake-trust-policy.json
  3. Attach the AmazonMacieHandshakeRole policy to the role using the attach-role-policy command.

    aws iam attach-role-policy --role-name AWSMacieServiceCustomerHandshakeRole --policy-arn arn:aws:iam::aws:policy/service-role/AmazonMacieHandshakeRole