-
Notifications
You must be signed in to change notification settings - Fork 637
Is it possible to download v3 without using node.js? #4893
-
I want to use the v3 SDK but there does not seem to be a way to just include the js library or download it like vs 2.
i.e. <script src="https://sdk.amazonaws.com/js/aws-sdk-SDK_VERSION_NUMBER.min.js"></script>
We don't use or want to install NODE.JS.
Is there a download or CDN for the latest version or is node.js the only option?
Beta Was this translation helpful? Give feedback.
All reactions
Hi @jaimefuhr, basically that is not possible in V3. You could download the source code from GitHub but however you still need to resolve the dependencies, which are npm dependencies anyways, in order to build the whole SDK.
I hope this helps!
Thanks!
Replies: 3 comments
-
Hi @jaimefuhr, basically that is not possible in V3. You could download the source code from GitHub but however you still need to resolve the dependencies, which are npm dependencies anyways, in order to build the whole SDK.
I hope this helps!
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions
-
Hello! Reopening this discussion to make it searchable.
Beta Was this translation helpful? Give feedback.
All reactions
-
@jaimefuhr @yenfryherrerafeliz
It's possible now
Use @aws-sdk/client-* or @aws-sdk/lib-* Directly in Browser via importmap + jsDelivr
Thanks to the AWS SDK's modular packaging via webpack, public hosting on GitHub, and delivery via the jsDelivr CDN, you can now use AWS SDK v3 clients like @aws-sdk/client-s3 directly in the browser — no bundlers or build steps required!
✅ Example: Use @aws-sdk/client-s3 via import map and jsDelivr CDN in HTML
This example shows how to use the @aws-sdk/client-s3 package in a simple HTML file using an import map that loads the module directly from the jsDelivr CDN.
📄 HTML Code:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <script type="importmap"> { "imports": { "@aws-sdk/client-s3": "https://cdn.jsdelivr.net/gh/aws-sdk/client-s3@3.844.0/index.min.mjs" } } </script> </head> <body> <script type="module"> import { S3Client, GetObjectCommand } from "@aws-sdk/client-s3"; const client = new S3Client({ region: "us-east-1" }); </script> </body> </html>
🔁 Use Other AWS SDK Clients
You can replace client-s3 with any other AWS SDK v3 client. For example:
-
@aws-sdk/client-dynamodb:"https://cdn.jsdelivr.net/gh/aws-sdk/client-dynamodb@3.844.0/index.min.mjs" -
@aws-sdk/client-ses:"https://cdn.jsdelivr.net/gh/aws-sdk/client-ses/index.min.mjs" // gets latest version
If you omit the version, you will automatically get the latest version available on GitHub, e.g.:
{
"imports": {
"@aws-sdk/client-s3": "https://cdn.jsdelivr.net/gh/aws-sdk/client-s3/index.min.mjs"
}
}📚 References:
-
jsDelivr GitHub Integration:
https://www.jsdelivr.com/?docs=gh
You can use:https://cdn.jsdelivr.net/gh/:user/:repo@version/file -
HTML Import Maps MDN Documentation:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script/type/importmap -
AWS SDK v3 Browser Clients GitHub Repository:
https://github.com/aws-sdk -
AWS SDK JS v3 Discussion in AWS GitHub:
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1