using Storage - no plugin found in Storage for the provider
See original GitHub issue** Which Category is your question related to? ** Storage
** What AWS Services are you utilizing? ** Amazon S3
** Provide additional details e.g. code snippets ** I am trying to create a simple static file in my S3 bucket with amplify, i have added storage through the amplify cli already and my config has the bucket.
my amplify configuration:
import Amplify, { Auth } from 'aws-amplify';
import aws_config from './aws-exports';
const config = {
...aws_config,
graphql_headers: async () => {
try {
const token = (await Auth.currentSession()).getIdToken().getJwtToken();
return { Authorization: token };
} catch (e) {
console.error(e);
return {};
}
}
};
Amplify.configure(config);
and when I am trying to use the Storage module -
import { Storage } from 'aws-amplify';
Storage.put("text.txt", "Hello World", {
contenType: "text/plain"
});
I get 2 errors -
No plugin found in Storage for the provider
TypeError: Cannot read property 'put' of undefined
here’s an image of the errors -
Issue Analytics
- State:
- Created 4 years ago
- Reactions:17
- Comments:28 (2 by maintainers)
Top Results From Across the Web
AWS Amplify `No plugin found in Storage for the provider` error
I was able to get the application working by a. removing the manual configuration in main.js, b. removing storage completely, c. publishing ...
Read more >Storage classes - Amazon EKS - AWS Documentation
Create an AWS storage class manifest file for your storage class. The following gp2-storage-class.yaml example defines a storage class called gp2 that uses...
Read more >Storage - Custom Plugin - React Native - AWS Amplify Docs
You can create your custom pluggable for Storage. This may be helpful if you want to integrate your app with a custom storage...
Read more >Installing the IBM Cloud Object Storage plug-in on VPC and ...
The plug-in automatically retrieves your cluster location and to set the API endpoint for your IBM Cloud Object Storage buckets in your storage...
Read more >BEE Plugin Tech Docs | Connect your file storage system
We created a way to connect to a custom file system provider, allowing you to use BEE with your own file storage, no...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Im facing the same issue as @idanlo and i can’t find a fix to move forward
My logs prints:
The error triggered after using
Storage.put
wasNo plugin found in Storage for the provider
when using:But i’ve tried with other scenario:
And now the error is different:
Versions:
UPDATE: After updating
@aws-amplify/core
to^1.1.0
the following method works, anyway will be nice to go back toAmplify.configure
only.@faxad how did you configure the Trust Relationships? also how do you enable debug mode?