I am having two AWS instances (Say Instance 1 and 2) with OS as RHEL 7. Instance 1 is having IAM role A and Instance 2 is also having IAM role A.
When I make S3 connection from Instance 1 to list files in buckets, I am able to browse through files. The same process is not working on Instance 2 and I am getting error as 403 Forbidden.
Both the instances are using same IAM role to get temporary credentials. So, I suppose there is no access permission issue here, as Instance 1 is working fine and Instance 2 is not.
Moreover, on instance 2, it is not confined to one bucket, I am getting same error for all S3 connection on Instance 2.
On both the instances, DSS version 6.0.2 is installed.
What cab be the reason for above problem?
Then I'm sorry but I think we're out of ideas. We'd advise you to keep looking for environmental differences, including double-checking your instance profile, your ~/.aws/credentials, the settings of the S3 connection.
You may also want to send the stack of the AWS error, which may give a hint about which particular operation fails.
You may also want to reach out to AWS support with the request ID, as they may be able to provide you with further details of why it was rejected.