I have one EC2 Instance running custom apps under AWS Account A. Custom Apps execute the API from another AWS Account B. I have created IAM-Role and attached to EC2 instance. Below policy is attached to IAM-Role, just for testing I have allowed all resources.
{
"Version": "2012-10-17",
"Statement": {
"Effect": "Allow",
"Action": "sts:AssumeRole",
"Resource": "arn:aws:iam::*.*"
}
}
Please advise what Policy updates or role updates needs to be done on Account B OR any other setting I need to configure.
I am new to IAM_Roles and Gateway API.