Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
Unknown
Description
Currently both aws.s3 and aws2.s3 IAM optimized client implementations are using a hard-coded InstanceProfileCredentialsProvider. It means that you can only use it from EC2 instance, and it will not work in ECS or Fargate task.
It will make much more sense to use a DefaultCredentialsProviderChain (DefaultCredentialsProvider for v2). In this case we will be able to use multiple methods for supplying credentials - Java System Properties, Environment Variables, Credential profiles file, Credentials delivered through the Amazon EC2 container service,
Instance profile credentials delivered through the Amazon EC2 metadata service.