aws-amplify / aws-amplify/amplify-cli
Add a "Create or update Cognito Lambda Triggers" option to "amplify update auth"
- Dominant language
- TypeScript
- Stars
- 2.9k
- Forks
- 825
- Avg merge
- 11d 23h
- Merged PRs (30d)
- 2
Description
**Is your feature request related to a problem? Please describe.**
I often find that with Amplify projects, I need to modify Cognito lambda triggers. Currently when running `amplify update auth`,
I'm presented with these options:
```
xec "amplify update auth"
Please note that certain attributes may not be overwritten if you choose to use defaults settings.
You have configured resources that might depend on this Cognito resource. Updating this Cognito resource could have unintended side effects.
Using service: Cognito, provided by: awscloudformation
What do you want to do?
Apply default configuration without Social Provider (Federation)
Apply default configuration with Social Provider (Federation)
❯ Walkthrough all the auth configurations
Create or update Cognito user pool groups
Create or update Admin queries API
```
It would be massively beneficial to add a "Create or update Lambda Triggers" option. E.g:
```
xec "amplify update auth"
Please note that certain attributes may not be overwritten if you choose to use defaults settings.
You have configured resources that might depend on this Cognito resource. Updating this Cognito resource could have unintended side effects.
Using service: Cognito, provided by: awscloudformation
What do you want to do?
Apply default configuration without Social Provider (Federation)
Apply default configuration with Social Provider (Federation)
❯ Walkthrough all the auth configurations
Create or update Cognito user pool groups
Create or update Admin queries API
Create or update Cognito Lambda Triggers
```
**Describe the solution you'd like**
As above.
**Describe alternatives you've considered**
Currently stepping through the "Walkthrough all the auth configurations" option is very time-consuming and makes users prone to making unwanted changes.
Contributor guide
Assessment
This issue has not been assessed yet.