aws-amplify / aws-amplify/amplify-cli

Add a "Create or update Cognito Lambda Triggers" option to "amplify update auth"

Open
#6,700 6 comments 11 reactions 0 assignees View on GitHub
auth feature-request ops-auth p4
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.