You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
final String bucketName = S3Path.bucketName(uri);
final boolean global = bucketName!=null;
final AwsClientFactory factory = new AwsClientFactory(awsConfig, globalRegion(awsConfig));
client = new S3Client(factory.getS3Client(clientConfig, global));
In cn-north-1 factory.getS3Client(clientConfig, global) global should be false, but in code "bucketName!=null" global must be true.
The text was updated successfully, but these errors were encountered:
Thank you for resolving s3 endpoint's issue.
The "global" problem is another sssues that impede use.
I suggest that the following changes can be made.
nextflow/plugins/nf-amazon/src/main/nextflow/cloud/aws/nio/S3FileSystemProvider.java
S3Client client;
ClientConfiguration clientConfig = createClientConfig(props);
//final String bucketName = S3Path.bucketName(uri);
final boolean global = !awsConfig.getRegion().startsWith("cn-");
final AwsClientFactory factory = new AwsClientFactory(awsConfig, globalRegion(awsConfig));
client = new S3Client(factory.getS3Client(clientConfig, global));
Bug report
When use region cn-north-1 and vpc endpoint for s3 in China, nextflow will use us-east-1 as aws client region not cn-north-1 configured
Expected behavior and actual behavior
Excepcted used the AWS_S3_ENDPOINT and AWS_REGION configured
Actual behavior is AWS_S3_ENDPOINT and us-east-1(default)
Steps to reproduce the problem
use S3 vpce in cn-north-1 like xxxx.s3.cn-north-1.vpce.amazonaws.com.cn
Program output
with an explicit deny in a resource-based policy (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied;
Problem source code
nextflow/plugins/nf-amazon/src/main/nextflow/cloud/aws/config/AwsS3Config.groovy
In cn-north-1 region endpoint looks like 'xxxx.s3.cn-north-1.vpce.amazonaws.com.cn'
isCustomEndpoint will return false ,but actual it need return true
nextflow/plugins/nf-amazon/src/main/nextflow/cloud/aws/nio/S3FileSystemProvider.java
In cn-north-1 factory.getS3Client(clientConfig, global) global should be false, but in code "bucketName!=null" global must be true.
The text was updated successfully, but these errors were encountered: