Questions tagged [aws-sdk]

The software development kit for use with the Amazon Web Services API.

The AWS SDK provides a language/platform-specific interface for API access to AWS services. For CLI access, see or .

Usage Guidance

  • Use the language/platform you're working on. For example, if you're using the Go SDK, tag your question with both . If the tag exists for a specific language, like , or — use it as well.
  • Do not use this tag for AWS CLI questions. Use instead.
  • Do not use this tag for AWS Tools for PowerShell questions. Use instead.

SDKs

An SDK is available in the following languages/platforms:

Links

AWS SDK Code Samples/Examples

6213 questions
2
votes
1 answer

How to permanently delete latest version of S3 Object using Nodejs

I have an S3 bucket with versioning enabled. Whenever i make a deleteObject call using the aws sdk for javascript it will mark the object with a delete marker. As specified in the documentation, for deleting s3 object permanently, the "VersionId"…
2
votes
1 answer

Identify AWS service from Interface Internal IP in VPC Flowlogs

I am reading AWS VPC Flowlogs data (published to S3) which has internal IP of interfaces. We can create flow logs for network interfaces that are created by other AWS services, such as: Elastic Load Balancing Amazon RDS Amazon ElastiCache Amazon…
Brij
  • 6,086
  • 9
  • 41
  • 69
2
votes
1 answer

How to get AWS frameworks working in Xcode 11?

I'm trying to get AWS frameworks working in Xcode(version 11.2.1) by importing them manually. The only way I get them working is by adding them in the Embed Frameworks under Build Phases. Everything is fine until I import AWSMobileClient in one of…
lacefarin
  • 1,018
  • 2
  • 13
  • 18
2
votes
1 answer

AWS Pinpoint Push Notification for NodeJS has no sound

Currently I have this parameter to create a message in pinpoint, { ApplicationId: config.PROJECT_ID, MessageRequest: { Addresses: { [token]: { ChannelType: 'APNS' } }, …
2
votes
3 answers

AWS how to make ASG always use the latest AMI?

So we are trying to frequently build images and update them to our launch configs, and we want our launch configs to always use the latest AMI (Amazon Machine Image). And of course we want want all this to happen in an automated fashion. We are…
edmamerto
  • 7,605
  • 11
  • 42
  • 66
2
votes
1 answer

Credentials should be scoped to a valid region

When I didn't use AWS SES, below code was working perfectly const AWS = require('aws-sdk'); AWS.config.update({region: 'ap-northeast-2'}); const s3 = new AWS.S3({apiVersion: '2006-03-01'}); but after I added SES code with ap-southeast-2…
user10152831
2
votes
1 answer

Speed Up AWS S3 Video Upload: Cloudfront or Transfer acceleration?

I am uploading videos directly to a AWS S3 bucket, but the uploads seem slow for even a 10 second iPhone video. A user on my website uploads a video. Step 1: Create createPresignedPost on server const AWS = require('aws-sdk'); s3 = new…
Will
  • 605
  • 2
  • 11
  • 23
2
votes
1 answer

How to get user count on a EC2 Windows Instance AWS

I'm trying to incorporate some AWS features into my JSF application. I have multiple EC2 instances running windows server, I would like to know how many windows users are connected to each instance and if they are actively using the system or not.…
Alexandre Krabbe
  • 727
  • 1
  • 13
  • 33
2
votes
1 answer

Control how long Custom Metrics are stored in AWS Cloudwatch

AWS Cloudwatch stores custom metrics for a duration dependent upon the metric's period: Data points with a period of less than 60 seconds are available for 3 hours. These data points are high-resolution custom metrics. Data points with a period…
Jordan
  • 3,813
  • 4
  • 24
  • 33
2
votes
0 answers

How to detect when MQTT client disconnects from AWS IoT MQTT Broker?

I'm working on a small router that connects via LTE/3G to an AWS IoT MQTT Broker to publish messages on a regular basis. When internet is working and the router's AWSIoTMQTTClient could connect to the broker, messages are sent and everything works…
Ñhosko
  • 723
  • 2
  • 8
  • 25
2
votes
1 answer

AWSRequestId is missing from my CloudWatch logs

I am using AWS Lambda with Java 8, and I am using Log4j2 Logger for printing logs in CloudWatch, following is my Log4j2 configuration.
pramesh
  • 501
  • 3
  • 11
2
votes
2 answers

How to self terminate EC2 from powershell?

I need powershell code to terminate an instance without hardcoding the instance ID. I tried aws ec2 terminate-instances --instance-ids 'curl http://169.254.169.254/latest/meta-data/instance-id' But the instance doesn't terminate. Any ideas?
stevec
  • 41,291
  • 27
  • 223
  • 311
2
votes
1 answer

How to make sure your files are encrypted when using AWS S3 KMS encryption?

I'm trying to test the most basic use cases around encryption/decryption with AWS S3 and AWS java SDK (trying both v1 and v2). So this is what I'm doing : I upload a small json file using aws console, and then I check that in Properties > crypt,…
Tristan
  • 8,733
  • 7
  • 48
  • 96
2
votes
1 answer

S3AbortableInputStream : Not all bytes were read from the S3ObjectInputStream, aborting HTTP connection. Warning when reading only ObjectMetadata

I am using 1.11.637 with Spring boot 2.1.4.RELEASE. Code : which causes S3 Warning (Here i have to access Only getUserMetadata from S3Object and not whole Object Content) private Map
Arun Kumar
  • 6,534
  • 13
  • 40
  • 67
2
votes
1 answer

Finding Commit Digest for Amazon QLDB

I'm trying to connect and execute statements to Amazon QLDB using Node.js. In order to achieve this, I need to complete the final step which is calculating the commit digest. I have no idea how to do this. I've thoroughly researched the QLDB…
Med
  • 31
  • 4