Current Selection: @aws-sdk/sdkName with version
- External Script File - Recommended
- Inline Script Tag
# Method 1: External Script File - Recommended
html content - This can be inside index.html or home.html or any other HTML file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AWS SDK v3 Browser Usage</title>
<!-- To Know more about importmap, refer to the MDN documentation: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/script/type/importmap -->
<script type="importmap" crossorigin="anonymous">
{
"imports": {
"@aws-sdk/sdkName": "https://cdn.jsdelivr.net/gh/cloud-sdk-builds/sdkName@version/index.min.mjs"
},
"integrity": {
"https://cdn.jsdelivr.net/gh/cloud-sdk-builds/sdkName@version/index.min.mjs": "srihash"
}
}
</script>
</head>
<body>
<h1>Hello World!</h1>
<script type="module" src="/script.mjs"></script>
</body>
</html>
javascript content
This is a separate file named script.mjs but can be named anything you prefer but don't forget to update the src attribute in the script tag in above html content and also remember .mjs as file extension such that it can be treated as modules by the browser and can be used with the import statement.
import { } from "@aws-sdk/sdkName";
// Refer AWS SDK for JavaScript V3 - Service Documentation
// https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/
# Method 2: Inline Script Tag
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AWS SDK v3 Browser Usage</title>
<!-- To Know more about importmap, refer to the MDN documentation: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/script/type/importmap -->
<script type="importmap" crossorigin="anonymous">
{
"imports": {
"@aws-sdk/sdkName": "https://cdn.jsdelivr.net/gh/cloud-sdk-builds/sdkName@version/index.min.mjs"
},
"integrity": {
"https://cdn.jsdelivr.net/gh/cloud-sdk-builds/sdkName@version/index.min.mjs": "srihash"
}
}
</script>
</head>
<body>
<h1>Hello World!</h1>
<script type="module">
import { } from "@aws-sdk/sdkName";
// Refer AWS SDK for JavaScript V3 - Service Documentation
// https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/
</script>
</body>
</html>
An import map allows you to define how module specifiers are resolved in the browser, enabling you to use clean import statements without relying on a build step. By mapping package names (such as @aws-sdk/sdkName) to versioned CDN URLs, you ensure consistent and predictable module loading. The import map must be declared inside a <script type="importmap"> tag within the <head> section of your HTML document so that it is available before any module scripts are executed. Refer MDN documentation.
# html tag
<script type="importmap" crossorigin="anonymous">
{
"imports": {
"@aws-sdk/sdkName": "https://cdn.jsdelivr.net/gh/cloud-sdk-builds/sdkName@version/index.min.mjs"
},
"integrity": {
"https://cdn.jsdelivr.net/gh/cloud-sdk-builds/sdkName@version/index.min.mjs": "srihash"
}
}
</script>
# imports line
"@aws-sdk/sdkName": "https://cdn.jsdelivr.net/gh/cloud-sdk-builds/sdkName@version/index.min.mjs"
# integrity line
"https://cdn.jsdelivr.net/gh/cloud-sdk-builds/sdkName@version/index.min.mjs": "srihash"CDN URI
https://cdn.jsdelivr.net/gh/cloud-sdk-builds/sdkName@version/index.min.mjs
SRI Hash
srihash
# GitHub Repository
https://github.com/cloud-sdk-builds/sdkName# Current Version File
https://github.com/cloud-sdk-builds/sdkName/blob/version/index.min.mjs# Latest Version File
https://github.com/cloud-sdk-builds/sdkName/blob/main/index.min.mjs
# Raw File
https://raw.githubusercontent.com/cloud-sdk-builds/sdkName/refs/tags/version/index.min.mjs
Why cloud-sdk-builds?
⚡ No Build Step
Skip Webpack, Vite, or any bundler. Use AWS SDK directly in the browser.
🚀 Fast Integration
Prebuilt modules hosted on CDN for instant usage and faster development.
🌐 Native ES Modules
Leverage modern browser capabilities with import maps and clean module imports.
cloud-sdk-builds makes AWS SDK v3 available directly in the browser - no bundlers, no build step, no Node.js required. Just drop an import map into your HTML and start using S3, DynamoDB, Lambda, and more as native ES modules, served from a global CDN with SRI integrity hashes for security.