Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I regenerate the amplify file team-provider-info.json?

I have an amplify react app with resources pushed to cloud. Unfortunately, when I went to commit I removed the team-provider-info.json without backing it up. I have every other file that originated with amplify in my local project. Can I regenerate team-provider-info.json without starting over? There is no information about that process here: https://aws-amplify.github.io/docs/cli-toolchain/quickstart#teamprovider

like image 654
MarshHawk Avatar asked Oct 28 '19 01:10

MarshHawk


1 Answers

There is 2 ways you can generate (that I am aware of).

Firstly you need to view the stack within the cloudformation dashboard of AWS console.

Click the root stack of the environment you need to fix, then click the outputs tab.

This will list you a whole bunch of values to fill the cloudformation vales within the team provider json file.

You can either: 1. Regen the file by running this script in your terminal https://aws-amplify.github.io/docs/cli-toolchain/quickstart#environment-related-commands Or 2. Copy and paste the values into an existing team-provider-info.json file, however for the environment that needs fixing.

Sample outputs tab in cloudformation dashboard

like image 159
Dylan w Avatar answered Oct 24 '22 08:10

Dylan w