Amplify-cli: Cannot recreate team-provider-info.json

Created on 26 Jan 2020  路  2Comments  路  Source: aws-amplify/amplify-cli

Describe the bug
After issue #3273 deleted the team-provider-info.json file, I tried to recreate it per the instructions at https://aws-amplify.github.io/docs/cli-toolchain/quickstart#team-members-sharing-the-same-dev-backend

Upon issuing amplify init though, it does not ask Do you want to use an existing environment? as shown in the documentation - it proceeds to create a new project in Amplify Console with the same name as the old one.

Amplify CLI Version
4.10.0

To Reproduce
Create an Amplify project, delete team-provider-info.json, and then try and pull the environment back from the cloud.

Expected behavior
I expect to be able to reconnect tho the cloud resources without a team-provider-info.json file, as is recommended for public repositories at the end of this part of the documentation: https://aws-amplify.github.io/docs/cli-toolchain/quickstart#sharing-projects-outside-the-team-

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Mac v10.15.2
  • Node Version: 10.16.3
platform question

All 2 comments

ran into a similar situation. Was able to repopulate the file it using $ amplify pull --appId abcxyz123 --envName dev , same line displayed on the amplify console to start editing an environment. For this to work I needed to delete the amplify folder itself though.

I also ran into something similar and found that the following command helped resolve the issue

amplify configure project

pulled from this issue #3161

Was this page helpful?
0 / 5 - 0 ratings

Related issues

onlybakam picture onlybakam  路  3Comments

adriatikgashi picture adriatikgashi  路  3Comments

zjullion picture zjullion  路  3Comments

amlcodes picture amlcodes  路  3Comments

kangks picture kangks  路  3Comments