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.

How to delete project from the cloud while keeping the local source files intact?

See original GitHub issue

I would like to remove all the deployed infra from AWS cloud while preserving my source codes for my lambda and schema etc. How can I do that?

Running amplify delete would destroy basically everything from the cloud and the local files.

Which Category is your question related to? Cloudformation and environment

Amplify CLI Version 4.40.1

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
jhockettcommented, Jan 6, 2021

Thanks for the clarification @nubpro @lkolodziejek. I recommend leveraging git to help out with this:

Add the team-provider-info.json file to .gitignore Add project to a git repository, make sure amplify folder and all source code is committed and pushed Run amplify delete to remove the project locally and in the cloud (there’s no going back)

When you want to init the project, use the --app flag as described in the docs: https://docs.amplify.aws/cli/usage/headless#--app

1reaction
lkolodziejekcommented, Jan 5, 2021

Hi John,

Can you please kindly elaborate how this can help?

After both actions my local amplify stops working and I’m not able to re-create cloud environment.

In case of first solution, local amplify still believes ‘No changes’ to the environment and will not allow to push.

For the second, no S3 bucket in AWS and cannot recreate environment as well.

Option allowing to delete resources in Cloud only without need to recreate local configuration would be very useful.

Best Regards, Lukasz

Read more comments on GitHub >

github_iconTop Results From Across the Web

Remove or Delete an Item or Project - Microsoft Learn
In Solution Explorer, remove the project you want to delete from the solution. In Windows Explorer, locate and select the files associated with ......
Read more >
Solved: Re: Delete Creative Clouds files locally while sti...
If you pause your file sync, delete the local file, then you enable the sync again, the file in the cloud also deleted....
Read more >
How to Use Git Delete File [Full Tutorial for Git] - EaseUS
Go through the different methods to use Git to delete file and use GitHub ... It is a popular DevOps tool for source...
Read more >
Creating and managing projects - Documentation
You can shut down projects using the Google Cloud console or the projects.delete method in the API. A project must have a lifecycle...
Read more >
How to reclaim disk drive space taken up by Final Cut Pro ...
It keeps these files around in case you need to work on the project again, but you don't need those files. Sure, they...
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