From the source account, create the source role in the AWS Identity and Access Management console.
To create the source account role
-
Sign in to the AWS Management Console and open the IAM console at https://console.aws.amazon.com/iam/
. -
In the navigation pane, choose Policies.
-
Choose Create policy.
-
On the Create policy page, do the following:
-
Choose JSON.
-
Replace the contents of this window with the permissions policy at the start of this section.
-
Choose Next: Tags and Next: Review.
-
Enter a name for your policy and an optional description, and then choose Create policy.
-
-
In the navigation pane, choose Roles.
-
Choose Create role.
-
For the Trusted entity type, choose Custom trust policy. For Custom trust policy, replace
"Principal": {},
with the following, which specifies the log delivery service. Choose Next."Principal": { "Service": "delivery.logs.amazonaws.com" },
-
On the Add permissions page, select the checkbox for the policy that you created earlier in this procedure, and then choose Next.
-
Enter a name for your role and optionally provide a description.
-
Choose Create role.