-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use just S3 service out of the whole aws-sdk
?
#1120
Comments
@Sunil6591 We are currently working on better webpack support as part of #1117, and are also hoping to address importing individual services, but this is still a work in progress. |
This is now available in 2.6.0: import S3 from 'aws-sdk/clients/s3'; Take care to avoid any use of the default import 'aws-sdk/lib/node_loader'; // Hack needed before the first import
import { config } from 'aws-sdk/lib/core'; // or any other `aws-sdk` export Hopefully this is cleaned up soon. |
To build on top of what @simonbuchan said, if you're using webpack or browserify, you can now require individual services: var S3 = require('aws-sdk/clients/s3'); You can also still access the var AWS = require('aws-sdk/global'); |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread. |
I want to use just the S3 services to upload the object and get the list of objects.
The
dist
of aws-sdk is 1 MB, and i dont need everything, just the S3.I am looking for something like this
or
The text was updated successfully, but these errors were encountered: