Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fallback to tpi when looking for existing envs on init #11137

Merged
merged 3 commits into from
Oct 7, 2022

Conversation

edwardfoyle
Copy link
Contributor

@edwardfoyle edwardfoyle commented Oct 7, 2022

Description of changes

This commit reverts a part of #10679
As part of that change, we no longer checked the contents of the team-provider-info file to determine if an environment already exists when doing an amplify init. This caused some issues for customers using init to attach existing environments to their local projects. We now fall back to checking the contents of the team-provider-info.json file for existing environments on init.

Issue #, if available

#11120

Description of how you validated changes

Manually tested, added unit tests and running the e2e tests here: https://app.circleci.com/pipelines/github/aws-amplify/amplify-cli/11461/workflows/049075f2-67e0-4327-bbe3-b6067b8160ea

Checklist

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@edwardfoyle edwardfoyle requested a review from a team as a code owner October 7, 2022 18:33
akshbhu
akshbhu previously approved these changes Oct 7, 2022
jhockett
jhockett previously approved these changes Oct 7, 2022
@edwardfoyle edwardfoyle dismissed stale reviews from jhockett and akshbhu via 99a53e8 October 7, 2022 19:31
jhockett
jhockett previously approved these changes Oct 7, 2022
packages/amplify-cli/src/init-steps/s0-analyzeProject.ts Outdated Show resolved Hide resolved
akshbhu
akshbhu previously approved these changes Oct 7, 2022
@edwardfoyle edwardfoyle dismissed stale reviews from akshbhu and jhockett via c244922 October 7, 2022 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants