aws iam attach-role-policy
Attaches the specified managed policy to the specified IAM role. AWS CLI reference
2 options Its page in the AWS CLI reference
Options
--policy-arnThe Amazon Resource Name (ARN) of the IAM policy you want to attach.--role-nameThe name (friendly name, not ARN) of the role to attach the policy to.