amplify-cli icon indicating copy to clipboard operation
amplify-cli copied to clipboard

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

Open kylekirkby opened this issue 4 years ago • 6 comments

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.

kylekirkby avatar Feb 22 '21 12:02 kylekirkby

+1

wsun66 avatar Mar 19 '21 15:03 wsun66

+1

phanviet avatar Jun 21 '21 09:06 phanviet

+1

pjsandwich avatar Aug 24 '21 16:08 pjsandwich

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

artidataio avatar Nov 17 '21 05:11 artidataio

any progress?

hyang-orienteed avatar Apr 01 '24 17:04 hyang-orienteed