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
I'm trying to work with MRAP(Multi Region Access Point) enabled in s3 bucket from java sdk, in which the code working fine with the bucket name giving directly, but the same code not working WRT the MRAP enabled url.
bucket name : br-gtodev-amtdcr-sftp-us-east-1-s3 --> working
accessPointArn : arn:aws:s3::578294835321:accesspoint/m8dzbp9kydd5u.mrap -->notworking
java code used was as below.
S3Client s3Client = S3Client.builder()
.region(region) -->region given as "us-east-1"
.credentialsProvider(DefaultCredentialsProvider.create())
.build();
//to fetch the list of objects
ListObjectsV2Request listRequest = ListObjectsV2Request.builder().bucket(bucketName).prefix(keyName)
.build();
if I pass bucket name its working fine but if I pass MRAP arn then getting the following issue at the line "ListObjectsV2Response listing = " as below.
ERROR: We encountered an internal error. Please try again. (Service: S3, Status Code: 500, Request ID: 44KBWEYZV5ER4ZPF, Extended Request ID: FAkkftsSX41Ts/UQeyKh7yERTgzCur+GINgVNq+/0bFxMf96fKGpS0wZLXeY7JkgE0jxPsynJNM=).
Can you please help me out on this and let me know the process to be followed for this to work. log.txt
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi Team,
I'm trying to work with MRAP(Multi Region Access Point) enabled in s3 bucket from java sdk, in which the code working fine with the bucket name giving directly, but the same code not working WRT the MRAP enabled url.
bucket name : br-gtodev-amtdcr-sftp-us-east-1-s3 --> working
accessPointArn : arn:aws:s3::578294835321:accesspoint/m8dzbp9kydd5u.mrap -->notworking
java code used was as below.
S3Client s3Client = S3Client.builder()
.region(region) -->region given as "us-east-1"
.credentialsProvider(DefaultCredentialsProvider.create())
.build();
//to fetch the list of objects
ListObjectsV2Request listRequest = ListObjectsV2Request.builder().bucket(bucketName).prefix(keyName)
.build();
if I pass bucket name its working fine but if I pass MRAP arn then getting the following issue at the line "ListObjectsV2Response listing = " as below.
ERROR: We encountered an internal error. Please try again. (Service: S3, Status Code: 500, Request ID: 44KBWEYZV5ER4ZPF, Extended Request ID: FAkkftsSX41Ts/UQeyKh7yERTgzCur+GINgVNq+/0bFxMf96fKGpS0wZLXeY7JkgE0jxPsynJNM=).
Can you please help me out on this and let me know the process to be followed for this to work.
log.txt
Beta Was this translation helpful? Give feedback.
All reactions