Dima Sheludko
03/07/2023, 3:47 PMs3.access-key: your-access-key
s3.secret-key: your-secret-key
i have serviceAccount and has configured iam, but with default configuration receive 403 error
currently i am trying to use hive.s3.* options to configure it, but still working on it and don`t sure it will helpsap1ens
03/08/2023, 3:27 AMclen.moras
03/08/2023, 6:02 PMDima Sheludko
03/09/2023, 10:05 AMpresto.s3.use-instance-credentials but i set it to false, so it is strange behaviourDima Sheludko
03/09/2023, 11:22 AMclen.moras
03/09/2023, 11:51 AMDima Sheludko
03/09/2023, 11:52 AMDima Sheludko
03/09/2023, 4:53 PMif (credentials.isPresent()) {
return new AWSStaticCredentialsProvider((AWSCredentials)credentials.get());
} else if (this.useInstanceCredentials) {
return InstanceProfileCredentialsProvider.getInstance();
} else if (this.s3IamRole != null) {
return (new STSAssumeRoleSessionCredentialsProvider.Builder(this.s3IamRole, this.s3IamRoleSessionName)).build();
} else {
String providerClass = conf.get("presto.s3.credentials-provider");
return (AWSCredentialsProvider)(!Strings.isNullOrEmpty(providerClass) ? getCustomAWSCredentialsProvider(uri, conf, providerClass) : DefaultAWSCredentialsProviderChain.getInstance());
}
so as a fix you should set useInstanceCredentials to false and do not set s3IamRole