-
Notifications
You must be signed in to change notification settings - Fork 825
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
Deleting unused Cognito clients blocks deployments #13606
Comments
hey @RalphKemp, you could try removing the dependancy in the override using the following
|
Hi @ykethan, thanks for getting back to me. Cheers for the advice - didn't realise you could update dependencies as the Whilst those values are removed when pushing, unfortunately I'm still getting
The only thing remaining that I feel I should delete via override would naturally be:
by adding
Although I'm hesitant to do this - would this break anything to your knowledge? Thanks |
Hey @RalphKemp, have been trying to find a workaround but wasn't able to override the auth resource to remove the deleted client references. |
Hi @ykethan thanks for getting back to me - I'll give this a go and will let you know how I get on. Cheers |
@RalphKemp did the above steps resolve your issue? or did you resolve it another way? I am dealing with something similar. |
My solution is migrating away from Amplify! Tried the |
Sorry to hear about your experience, @RalphKemp. With Amplify Gen 2, we offer a much more comprehensive experience and customization options. Do reach out to us if this would enable building your use case. |
This issue is now closed. Comments on closed issues are hard for our team to see. |
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
v20.11.1
Amplify CLI Version
v12.5.1
What operating system are you using?
Mac
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
Deleted automatically generated clients from Cognito
Describe the bug
At my company we've been using Amplify for about 3.5 years in production. About a year ago I removed the default clients which were auto generated for us in Cognito, as they weren't being used. For quite a while now I've been using Amplify CLI
v9.2.1
to deploy to both dev and prod, and have had no problems. However this week I wanted to upgrade to Amplify V6, and part 3 of these docs say the CLI needs to be upgraded.When I try to deploy on
v12.5.1
I get the following error:In the automatically generated cloudformation file, I can see the
IdentityPoolRoleMap
value has changed, adding aRoleMappings
value that isn't generated inv9.2.1
.Even if I delete the
RoleMappings
inoverride.ts
, the non-existentUserPoolClient
andUserPoolClientWeb
are still in theDependsOn
array.Is there any way of getting round this? We have tens of thousands of users in production, and are expecting a large increase in users in March due to a new client. Obviously it was a mistake to delete the unused clients, but I didn't think it would eventually halt all deployments. Any help would be greatly appreciated, thanks.
Expected behavior
I expected auth to be deployed correctly without relying on values which were autogenerated during project initialisation.
Reproduction steps
Project Identifier
No response
Log output
Additional information
Before understanding the bug I thought it might be a problem with Amplify CLI 12.10.1, so tried a lower version. Same error happening on both.
Before submitting, please confirm:
The text was updated successfully, but these errors were encountered: