Category "aws-sdk"

Aws-sdk s3 upload CORS error cause by CacheControl Option

My code is looks like this and when import { FileUpload } from "../types/scalars/Upload.scalar"; new S3.ManagedUpload({ params: { ACL: "pu

Mock 'S3' feature of 'aws-sdk' (nodeJS and Jest)

I need to test a file in charge of retrieving data from S3 through the 'aws-sdk' (nodeJs + Jest). The file is: const AWS = require('aws-sdk'); let S3 = null;

AWS JavaScript SDK: Retrieving Shell Output from ECS Execute Command

I'm running ExecuteCommandCommand successfully using the AWS JavaScript SDK v3, but I'm unable to find out how to log the shell output. The ExecuteCommandComman

When Cloudwatch Logs data is sent into kinesis data stream, what is its encoding format

I'm trying to write a Go program, to download data from aws kinesis data stream. I read that kinesis data stream encode the data with base64, so I need first de

Strange behavior of AWS SQS FIFO with multiple producers per single message group

Given: App:Spring Boot, AWS SDK v2, SqsAsyncClient AWS:SQS FIFO with high throughput enabled, delivery delay = 0, visibility timeout = 30sContent-based deduplic

Checking Dynamodb Exceptions in Cloudtrail

I am using AWS Java-SDK to query Dynamodb table and I get the following exception java.util.concurrent.CompletionException: software.amazon.awssdk.services.dyna

Unable to connect to Amazon SQS using amazon sdk

Iam trying to send a message to SQS queue based on This Code. Since my code needs a token access key and Token, My authentication mechanism is also different. S

AWS Lambda image/pdf upload to S3 is corrupted (asp.net core)

I have written a function that uploads a file in an s3 bucket. It works fine when I run my application locally. But when I deploy the application in AWS Lambda,

Shutdown IdleConnectionReaper in AWS Java SDK v2

I'm using S3Client from Java SDK v2. to upload/download files from AWS S3 in a distributed web application. I had a problem with idle-connection-reaper daemon t

How to get parameters in cloudformation template to launch using Amazon Go SDK?

I am having trouble writing a script in Golang to launch a cloudformation template that has several parameters. I am new to both sdk and golang, so I am runnin

Unable to configure SQS queue notification in S3

I created an SQS queue and added policy under permission tab allowing only my account users to configure the configure the notification Policy Document { "

Is it possible to disable SSL certificate checking in the amazon kinesis consumer library v2?

When developing a Kinesis Consumer using Version 2 of the Kinesis Consumer Library and overriding the Dynamo DB endpoint to a localstack endpoint the library fa

Programmatically activate User-Defined Cost Allocation Tags

Background I've just created some new tags in my AWS tenant using their Amazon Resource Groups Tagging API. Problem There doesn't seem to be anyway of activa

Posting form file to ASP .NET Core API using AWS SDK Test Lambda Context and APIGatewayProxyRequest

I have an ASP .NET Core API endpoint which accepts the below model: public class FileUploadModel { public IFormFile? File { get; set; } public DateTime?

AWS cognito: adminUpdateUserAttributes not working and not giving an error , am i missing something?

I can't get adminUpdateUserAttributes for Cognito to work. The cli works and I can have the user add/changed them not desired but wanted to see it working. I'

How enable access to AWS STS AssumeRole

I am getting an error when calling to assume role method of STS. It says that the user is not authorized to perform sts:AsumeRole on resource xxx. I did the fo

Unable to execute HTTP request : Couldn't Kickstart Handshaking

I am trying to hit my Spring Boot Server(2.1.4) with 500 user threads using JMeter(5.0). while trying this I got the error in JMeter log file which is about 1%

How to copy/move all objects in Amazon S3 from one prefix to other using the AWS SDK for Node.js

How do I copy all objects from one prefix to other? I have tried all possible ways to copy all objects in one shot from one prefix to other, but the only way th

The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256

I get an error AWS::S3::Errors::InvalidRequest The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256. when I try upload fi

Can I stop a spot instance in aws just like I can stop and start an on demand ec2 instance

I had a use case where I was switching to using spot instances for my application instead of on demand instances. According to my requirement i should be able t