As Pulumi providers team is working on keeping the AWS provider up-to-date with the latest features, we found some complications with Exclusive Relationship Management Resources support specific to Pulumi. We wanted to share this RFC with the community:
https://github.com/pulumi/pulumi-aws/issues/4772 on our suggested way forward. The change involves eventual deprecation of inlinePolicies and managedPolicyArns input properties on the aws.iam.Role resource (as well as select other resources).