To allow another identity from another AWS account to access your resources with your account, you need to configure a role to grant the access required.
Imagine we have two AWS accounts—account A (the trusting account) and account B (the trusted account). User Stuart using account B needs to have access to your Relational Database Service (RDS) database in account A:
To configure this access, we need a new cross-account access role, which will need to be configured as follows.