Questions tagged [aws-s3-client]
47 questions
0
votes
0 answers
node.js promise not working properly for map within map syntax
I am trying to run the code below and for some strange reason in the debugger it gets to the send call and just jumps out to the calling function without ever continuing to the return line. I am not sure what could be going on here. If I take the…

user1790300
- 2,143
- 10
- 54
- 123
0
votes
1 answer
incorrect header check while trying to uncompressed s3 object body?
I compress and upload an object to s3 using the follwoing code:
let data: string | Buffer = JSON.stringify(rules);
let contentType = "application/json";
let encoding = null;
let filename = `redirector-rules.json`;
if (format === "gz") {
…

awm
- 1,130
- 3
- 17
- 37
0
votes
1 answer
AWS S3: 403 when listing objects, but not when creating objects
I have a AWS IAM policy with 2 rules, both referring to the same specific path in a S3 bucket. Users can only list/manage files inside that path.
Managing actions works fine (creating/uploading, deleting), but when it comes to LISTING files (the…

akira
- 3
- 2
0
votes
0 answers
Is there way to override host header in amazon s3 client?
I want to override host header in PutObjectRequest request so I have implemented the following code:
PutObjectRequest request = builder
.bucket(bucket).key(objectKey)
.overrideConfiguration(b -> {
…

gstackoverflow
- 36,709
- 117
- 359
- 710
0
votes
0 answers
How to access AWS S3client.js in Html
I want to access AWS S3client.js file
I added in html
...
..
alert(new AWS.S3()); // works
alert(new S3Client({})); // Not works
Is there any JS exists such…
0
votes
0 answers
`S3Client.send()` doesn't return `VersionId`
I have a bucket which has versioning enabled. In my ReactJS app, I need to upload files to the bucket and receive the new object metadata. I use S3 Client with PutObjectCommand to do the upload. The documentation here states:
Versioning
If you…

Persian Brat
- 394
- 2
- 13
0
votes
1 answer
AWS S3 bucket notification lambda throws exception (Service: Amazon S3; Status Code: 404; Error Code: NoSuchKey)
We have a AWS Glue DataBrew job which puts the output to some S3 bucket folder. Then a java lambda is notified for this Put notification. But the following sample code throws exception:
S3EventNotification.S3EventNotificationRecord record =…

handle_009
- 11
- 2
0
votes
1 answer
Cannot find a handler of type EndpointResolver in AWSSDKS3
This is my issue:
I am updating AWS S3 nuget package from 3.7.1.2 to 3.7.101.25
Project details:
I have API that calls Class Library in which i am creating a AmazonS3Client. In version "3.7.1.2", its working fine. But in 3.7.101.25, i am getting…
0
votes
1 answer
How to query s3 using select
I have the following set up in the gradle
implementation(platform("software.amazon.awssdk:bom:2.18.25"))
implementation("software.amazon.awssdk:s3")
implementation("software.amazon.awssdk:url-connection-client")
my code is as…

user1555190
- 2,803
- 8
- 47
- 80
0
votes
1 answer
specific argument in an output in AWS S3 CLI commands
Do you know how can I see a specific argument in the output using AWS S3 CLI?
For example, I want to see the output
KeyCount
after using the command list-objects-v2.

Shira
- 45
- 4
0
votes
0 answers
Acces denied CopyObjectCommand nodejs
To rename a file in a bucket, I copy the file to the new name and delete the old one. But when I was migrating from the old aws-sdk to the new S3-client, I now get a access denied on the copy object command. I have triple checked the permissions on…

YaMoef
- 1
0
votes
0 answers
AWS Lambda not getting invoked for PutObject events from Cross Account
I have a cross account data sharing architecture which is as follows.
Account A (Data Sending Account/ Source Account):
A glue job that does the cross account copy of S3 objects (PutObject) to Account B
Account B (Data Receiving Account/…

sparkcoderlv
- 51
- 5
0
votes
0 answers
S3 lifecycle management using Ansible
I am using ansible-playbook to apply life cycle management on S3 bucket. Below is the ansible task.
- name: Configure a lifecycle
community.aws.s3_lifecycle:
name: "{{ bucketName }}"
expiration_days: 30
aws_access_key: "{{ accessKey…

Rag
- 13
- 2
0
votes
1 answer
Calling getRegionName() on a awsS3Client backed by minio throws IllegalStateException
Calling getRegionName() on a awsS3Client backed by minio throws IllegalStateException.
The Minio configuration does include a region name. So, it is wierd that getRegionName() fails. That too, it throws…

Teddy
- 4,009
- 2
- 33
- 55
-1
votes
1 answer
How can I zip an object in S3 Bucket using Java AWS SDK
I am pretty new to Amazon S3 and working on something with S3. I have uploaded many files to S3 bucket using Java. I have objects in S3 with a name like Demo/demo1.txt, Demo/demo2.txt, Demo/demo3.txt. I have almost 1000 individual files till…

vyas
- 49
- 8