Search code examples
amazon-web-servicesaws-amplify-cliaws-amplify

Amplify How to restore backend definition?


I'm trying to pull a backend environment from amplify, but when i use the command amplify pull --appId 1234 --envName test it returns the message: Environment test not found. If this backend already exists, try restoring it's definition in your team-provider-info.json file. The backend already exists.

After this i tried the same command with --restore flag, but this doesn't work either. So, how can i restore my backend definition so i be able to use amplify pull?

enter image description here

How can i fix this?


Solution

  • The problem was a cloudformation permission my role hadn't. The error message could be more precise i guess.