aws-amplify / aws-amplify/amplify-cli
Allow creation of new app clients for Cognito Auth
- Dominant language
- TypeScript
- Stars
- 2.9k
- Forks
- 825
- Avg merge
- 11d 23h
- Merged PRs (30d)
- 2
Description
### Is this feature request related to a new or existing Amplify category?
auth
### Is this related to another service?
_No response_
### Describe the feature you'd like to request
When creating a new Amplify application with Cognito auth and pushing it will create two app clients. If one of the app clients is removed (such as via the Cognito AWS console) and we perform an update in our Amplify application with changes such as editing redirect URLs, performing an amplify push on the stack fails and enters a broken state where the change won't go through due to the old app client referenced by unique ID no longer existing.
Created in reference to https://github.com/aws-amplify/amplify-cli/issues/4233#issuecomment-629120515
### Describe the solution you'd like
Allow options to swap the App clients in Amplify CLI or allow generation of new App clients that swap the existing App client references.
### Describe alternatives you've considered
Utilizing Amplify override to swap new App clients generated on console.
### Additional context
Cognito doesn't support generating app clients with specific IDs, so the auth resource is broken due to being unable to recreate or reassign that specific app client. This results in needing to delete the entire environment to work around the issue
### Is this something that you'd be interested in working on?
- [ ] 👋 I may be able to implement this feature request
### Would this feature include a breaking change?
- [ ] ⚠️ This feature might incur a breaking change
Contributor guide
Assessment
This issue has not been assessed yet.