mirror of https://github.com/apache/druid.git
Add credentials for ECS (#8651)
* Add credentials for ECS * Fix import order * Update S3 authentication methods table * Update .spelling for new documentation
This commit is contained in:
parent
d87840d894
commit
1a78a0c98a
|
@ -20,6 +20,7 @@
|
|||
package org.apache.druid.common.aws;
|
||||
|
||||
import com.amazonaws.auth.AWSCredentialsProviderChain;
|
||||
import com.amazonaws.auth.EC2ContainerCredentialsProviderWrapper;
|
||||
import com.amazonaws.auth.EnvironmentVariableCredentialsProvider;
|
||||
import com.amazonaws.auth.InstanceProfileCredentialsProvider;
|
||||
import com.amazonaws.auth.SystemPropertiesCredentialsProvider;
|
||||
|
@ -35,6 +36,7 @@ public class AWSCredentialsUtils
|
|||
new EnvironmentVariableCredentialsProvider(),
|
||||
new SystemPropertiesCredentialsProvider(),
|
||||
new ProfileCredentialsProvider(),
|
||||
new InstanceProfileCredentialsProvider());
|
||||
new EC2ContainerCredentialsProviderWrapper(),
|
||||
InstanceProfileCredentialsProvider.getInstance());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -79,7 +79,8 @@ To connect to your S3 bucket (whether deep storage bucket or source bucket), Dru
|
|||
|3|Environment variables|Based on environment variables `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`|
|
||||
|4|Java system properties|Based on JVM properties `aws.accessKeyId` and `aws.secretKey` |
|
||||
|5|Profile information|Based on credentials you may have on your druid instance (generally in `~/.aws/credentials`)|
|
||||
|6|Instance profile information|Based on the instance profile you may have attached to your druid instance|
|
||||
|6|ECS container credentials|Based on environment variables available on AWS ECS (AWS_CONTAINER_CREDENTIALS_RELATIVE_URI or AWS_CONTAINER_CREDENTIALS_FULL_URI) as described in the [EC2ContainerCredentialsProviderWrapper documentation](https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/auth/EC2ContainerCredentialsProviderWrapper.html)|
|
||||
|7|Instance profile information|Based on the instance profile you may have attached to your druid instance|
|
||||
|
||||
You can find more information about authentication method [here](https://docs.aws.amazon.com/fr_fr/sdk-for-java/v1/developer-guide/credentials.html)<br/>
|
||||
**Note :** *Order is important here as it indicates the precedence of authentication methods.<br/>
|
||||
|
|
|
@ -23,6 +23,8 @@
|
|||
ACL
|
||||
APIs
|
||||
AWS
|
||||
AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
|
||||
AWS_CONTAINER_CREDENTIALS_FULL_URI
|
||||
Actian
|
||||
Authorizer
|
||||
Avatica
|
||||
|
@ -58,6 +60,8 @@ Dropwizard
|
|||
dropwizard
|
||||
DruidSQL
|
||||
EC2
|
||||
EC2ContainerCredentialsProviderWrapper
|
||||
ECS
|
||||
EMR
|
||||
EMRFS
|
||||
ETL
|
||||
|
|
Loading…
Reference in New Issue