Questions tagged [aws-sdk-js]

The official AWS SDK for JavaScript provides an API to many AWS services, including: S3, SNS, SQS, EC2, Route53, etc... This library can be used in front-end Javascript which is executed in the browser as well as in NodeJS.

aws-sdk-js

aws-sdk-js exists to help you interact with many AWS services (e.g. EC2, SQS, S3) programmatically in Javascript. This tag should be used for asking questions related to this official AWS SDK for Javascript.

Before asking questions, please make sure that you have reviewed the documentation provided by AWS. See the following important links:

702 questions
-1
votes
1 answer

How i can list all log in a group in lambdafunction aws

I try with @aws-sdk. I don't know what is function support to list logs.
-1
votes
1 answer

Instance profile not being added to EC2 instance

I am creating a EC2 instnace through a script such like: const instanceParams: EC2.Types.RunInstancesRequest = { ImageId: AWSImageIDs.AmazonLinux_arm64, InstanceType: 't4g.nano', MinCount: 1, MaxCount: 1, UserData:…
Nathanael
  • 954
  • 3
  • 19
  • 39
-1
votes
1 answer

Why am I getting crypto.getRandomValues() not supported when trying to use "@aws-sdk/client-quicksight" in nodejs?

I'm building an extension for a CMS (directus) and one of the dependencies @aws-sdk/client-quicksight is trying to use a module that is not supported (crypto). I get crypto.getRandomValues() not supported as an error from the CMS' logs; How can I…
carlinhop
  • 1
  • 2
-1
votes
1 answer

CORS error uploading file to S3 using mapbox credentials

I am trying to upload a shapefile from my frontend to the temporary bucket provided by mapbox like so: async function upload() { const credentials = await getCredentials(USERNAME, SECRET_KEY); // gets temporary mapbox credentials const…
justanotherguy
  • 395
  • 4
  • 17
-1
votes
1 answer

Dynamodb ValidationException when using AttributeValue

My updateItem params is like this: { TableName: 'tablename', Key: { pk: { S: 'string' }, sk: { S: '2022-06-13' } }, UpdateExpression: 'ADD #views :amount', ExpressionAttributeNames: { '#views': 'views' }, …
phuwin
  • 3,130
  • 4
  • 26
  • 49
-1
votes
1 answer

How to programmatically provision temporary IoT Certificates

Using Javascript/Nodejs how does one programmatically get a temporary provisioning claim certificate to send to the IoT device by a trusted user/installer? I have a Provisioning Template already created in my IoT Core and I can manually add it to…
Jay
  • 566
  • 6
  • 18
-1
votes
1 answer

AWS getSignedUrl with UploadId and PartNumber

I'm trying to convert the following JS into PHP: client.getSignedUrl('uploadPart', { Bucket: config.bucket, Key: key, UploadId: uploadId, PartNumber: partNumber, Body: '', Expires: ms('5 minutes') / 1000 }, (err, url) => { …
Josh
  • 714
  • 2
  • 8
  • 20
-1
votes
1 answer

How to view images from S3 bucket to my angular

I have to create a slide show image viewer using Angular 8 . My images are stored in the S3 browser how to fetch all the images from S3 bucket to my angular 8 project
-1
votes
2 answers

Trying to delete api key but getting "await is only valid in async function"

I'm trying to delete api keys using AWS SDK JS, but I'm receiving this error message: { "errorType": "Runtime.UserCodeSyntaxError", "errorMessage": "SyntaxError: await is only valid in async function", "stack": [ …
-1
votes
2 answers

Invalid parameter value error of YAML file

I am working on AWS organization : currently creating scp policies under AWS organization as below: Python file: policies = config['policies'] for policy in policies: try: OUPolicy = client.create_policy( …
Jiya
  • 225
  • 1
  • 6
  • 19
-2
votes
1 answer

Adding an email address in cc to an existing React/JS code

The code below is used to send emails to the persons registering on my website. Currently, the only person receiving the emails is the person who registered, however I'd like an email address e.g. support@mysite.com to be put in cc of every…
Greg
  • 3,025
  • 13
  • 58
  • 106
-3
votes
1 answer

Aws lambda getting executed multiple times

I have implemented a simple lambda function which gets triggered whenever there is objected created on s3 bucket. Whenever an object is created on S3 the lambda gets triggered.However , once the lambda is triggered, the lambda keeps executing at a…
heisenberg
  • 139
  • 1
  • 12
1 2 3
46
47