-
Notifications
You must be signed in to change notification settings - Fork 63
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
Codegen add with apiId breaking when initialising new dev #225
Comments
Hi @SebSchwartz, could you upgrade your amplify version to 3.10.0 and see if this problem persists? |
Yes the problem is solved with the new version. Thank you! |
I'm running into this issue right now with cli version 3.11.0. When I add the api with the apiId and do an amplify status, it shows the added api, the resource name, with the operation "No Change" so there's nothing to push. If I switch the master branch and the master env, I see that the API operation changes to "Delete. |
Just tried again and instead of "Delete" in the master env, it's showing "Create" but even after pushing, it doesn't change the operation or even add the GraphQL endpoint and other info to aws-exports.json |
@jskrt Currently when you add an API externally i.e when you don't create it using the CLI, it's not multi-environment agnostic. If you want multi-environment support, I would recommend adding the API via the CLI. We'll dig deep and look into make the external addition/import of API multi-environment friendly as well. |
@kaustavghosh06 |
@SebSchwartz What is in the .gitignore for your project? |
@nikhname .gitignore:
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Marking this as an enhancement as adding an api externally is not currently multi-environment agnostic |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Describe the bug
When adding codegen to a project (appsync not created with amplify) with apiId option. If a new developper enter the project and init amplify selecting an existing env, amplify status will tells him that pushed changes will delete it.
To Reproduce
Steps to reproduce the behavior:
| Category | Resource name | Operation | Provider plugin |
| -------- | ----------------------- | --------- | ----------------- |
| Auth | xxx | No Change | awscloudformation |
| Hosting | xx | No Change | awscloudformation |
| Api | xxx | Delete | |
| Function | xx | No Change | awscloudformation |
Only way to get normal status again is to remove api and add it again.
Expected behavior
All category should be in "No Change" state and the new dev should get the amplify working fine after init.
Desktop (please complete the following information):
Cli version: 1.12.0 on mac (created the project and added the api)
Cli version: 3.9.0 on windows/linux (joined project after)
Additional context
One thing that was maybe different and can help debugging: One dev was on mac and the other one was on windows so the .graphqlconfig.yml changed the / to \ . I don't know if this could be the problem or help debugging it... (problem also occurs on a linux as second dev laptop).
The text was updated successfully, but these errors were encountered: