AWS Assume role with EC2 instance IAM role not working
问题 In our application, we access the aws APIs with custom roles. In the developer environment, we provide access Key and secret key in the app.config and it works great. In the prod environment, we have setup an IAM role with necessary permissions to the custom roles and the EC2 instance is launched with that IAM role. When we try to switch role using the code, then we are getting below error Message: User: arn:aws:sts::XXXXXXXXX:assumed-role//i-0490fbbb5ea7df6a8 is not authorized to perform: