question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

amplify add storage: folder and files not created

See original GitHub issue

** Which Category is your question related to? ** amplify add storage

** Provide additional details e.g. code snippets ** While attempting to add Storage and then doing amplify push - it failed and performed a rollback. I fixed a few a things, and went to try again - and the following happens:

from the CLI

$ amplify add storage
? Please select from one of the below mentioned services Content (Images, audio, video, etc.)
Amazon S3 storage was already added to your project.
$ amplify push

Current Environment: master

| Category | Resource name   | Operation | Provider plugin   |
| -------- | --------------- | --------- | ----------------- |
| Storage  | rocketandart    | Create    | awscloudformation |
| Api      | r0ck3t          | Update    | awscloudformation |
| Auth     | cognito130c7752 | No Change | awscloudformation |

? Are you sure you want to continue? Yes

ENOENT: no such file or directory, scandir '/Users/filtenborg/tjalfe/r0k3t/amplify/backend/storage/rocketandart'

I haven’t touched any files in /amplify/backend/ folders

How do i proceed from here?

  • Should i manually remove the relation somewhere?
  • Should i manually add it to '/amplify/backend/storage/rocketandart/ ?
  • Can i remove storage and then add it again?

Im not sure how to go about this.

Thanks in advance Filtenborg

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
UnleashedMindcommented, Mar 8, 2019

Please follow these steps to restore your local amplify directory

  1. Very important, backup your entire project, so if things don’t go as planned, you can store and try again.
  2. update your cli to the latest version. npm install -g @aws-amplify/cli@latest
  3. In the backend folder and the #current-cloud-backend folder, remove this subfolder if it exists: /Users/filtenborg/tjalfe/r0k3t/amplify/backend/storage/
  4. In the backend folder and the #current-cloud-backend folder, update the amplify-meta.json file by removing the entire ‘storage’ property if it exists.
  5. In the backend folder and the #current-cloud-backend folder, update the backend-config.json file by removing the entire ‘storage’ property if it exists.

After the above steps.

  1. run amplify -v and tell us what your cli version is.
  2. add the storage using the normal workflow and then push.
0reactions
github-actions[bot]commented, May 27, 2021

This issue has been automatically locked since there hasn’t been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels for those types of questions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

File storage - AWS Amplify Docs
Amplify Studio File Storage provides a simple mechanism for managing user content for your app in public, protected or private storage folders. In...
Read more >
AWS amplify adding files in public directory - Stack Overflow
I just want my files to go in key and not create any public folder. is there any option to do that ?...
Read more >
How to Setup AWS Amplify Storage to Upload Files Using S3
In this tutorial, I show you step by step how to setup Amplify storage to upload files to a S3 Bucket.AWS Amplify Storage...
Read more >
Allowing external users to securely and directly upload files to ...
In the AWS Cloud9 terminal, inside the application directory, type the command: amplify add storage . Select the following parameters:.
Read more >
Storage
AWS Mobile CLI helps you to create and configure the storage buckets for ... file aws-exports.js which has been created and replaced into...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found