Amplify How to restore backend definition?

Viewed 1914

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?

2 Answers

This could be an issue with your aws profiles , probably you are using another profile/keys or try running aws configure to do a right setup.

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

Related