AWS Developer Blog

Category: JavaScript

Support for Promises in the SDK

Today’s release of the AWS SDK for JavaScript (v2.3.0) introduces support for promises when calling service operations. Promises provide an alternative to the use of a callback function to manage asynchronous flow. They allow treating asynchronous calls as a variable, simplifying error handling and providing greater control over handling results from asynchronous calls. For more […]

Read More

Announcing the Amazon DynamoDB Document Client in the AWS SDK for JavaScript

Version 2.2.0 of the AWS SDK for JavaScript introduces support for the document client abstraction in the AWS.DynamoDB namespace. The document client abstraction makes it easier to read and write data to Amazon DynamoDB with the AWS SDK for JavaScript. Now you can use native JavaScript objects without annotating them as AttributeValue types. This article […]

Read More

AWS SDK for JavaScript Office Hour

The AWS SDKs and Tools team invites you to the first-ever online office hour hosted by the maintainers of the AWS SDK for JavaScript. It will be held via Google Hangouts at 10:00-11:00am PDT (UTC -7:00) on Tuesday 6/30. If you don’t have one already, you will need to create an account with Google to join […]

Read More

Announcing CORS Support for Amazon EC2

We are pleased to announce that Amazon EC2 now supports CORS requests, which means you can now use the AWS SDK for JavaScript in the Browser to access your Amazon EC2 resources. The following example code snippet shows how to make requests to Amazon EC2: In your HTML file: <script src=”https://sdk.amazonaws.com/js/aws-sdk-2.1.34.min.js”></script> In your JavaScript file: […]

Read More

Creating Amazon CloudFront Signed URLs in Node.js

Amazon CloudFront allows you to use signed URLs to restrict access to content. This allows you to securely serve private content, or content intended for selected users using CloudFront. Read more about how CloudFront signed URLs work. This article describes how to generate Amazon CloudFront signed URLs in Node.js. To generate signed URLs, you can […]

Read More

Authentication in the Browser with Amazon Cognito and Public Identity Providers

Our earlier blog post introduced authentication with Amazon Cognito in the browser. Amazon Cognito has since simplified the authentication workflow. This article describes authenticating the SDK in the browser using Amazon Cognito and supported public identity providers like Google, Facebook, and Amazon. Step 1 and Step 2 outline registering your application with a public identity […]

Read More

Using the AWS SDK for JavaScript from Behind a Proxy

The AWS SDK for JavaScript can be configured to work from behind a network proxy. In browsers, proxy connections are transparently managed, and the SDK works out of the box without any additional configuration. This article focuses on using the SDK in Node.js from behind a proxy. Node.js itself has no low-level support for proxies, […]

Read More