aws-amplify / amplify-cli

The AWS Amplify CLI is a toolchain for simplifying serverless web and mobile development.
Apache License 2.0
2.81k stars 820 forks source link

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

Open kylekirkby opened 3 years ago

kylekirkby commented 3 years ago

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.

wsun66 commented 3 years ago

+1

phanviet commented 3 years ago

+1

pjsandwich commented 2 years ago

+1

artidataio commented 2 years ago

Especially true when you have an oauth setup, you need rewrite client id and client secret by going to the respective console.

hyang-orienteed commented 4 months ago

any progress?