Creating the IAM roles and establishing trust relationships: LOG_ROLE
You can create the LOG_ROLE IAM roles from the IAM console or AWS CLI.
Review the minimal setup for cloud storage outlined above and make sure
that you understand which policies you need to attach to which roles.
Go to the IAM console in the AWS web interface.
Select Roles from the navigation pane.
Click Create Role.
Under Select type of trusted entity, select
AWS service.
Under Choose a use case, select
EC2.
Figure 1. Select AWS use case
Click Next.
Attach the permissions policies required for the role that you are creating.
Make sure to attach all required policies.
Click Next.
Add tags if required by your organization.
Click Next.
Provide a name and an optional description for your role. Verify that you have
attached all required permissions policies.
Click Create role. This creates an IAM role and instance
profile.
Click the role to see its details.
Verify that the Instance Profile ARN is present.
Figure 2. Verify Instance Profule ARN presence
Click the Trust relationships tab.
Click Edit trust relationship.
Figure 3. Edit trust relationship
Verify that the JSON declaring a trust policy is the same as described in the
minimal setup. If it isn't, replace it with the correct trust policy
definition.