aws-amplify / amplify-cli

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

Update flow for imported auth resource #10939

Open ykethan opened 1 year ago

ykethan commented 1 year ago

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 using a imported cognito resource in amplify, any changes to the resource in the AWS console are not detected by amplify CLI.

Reproduction steps:

  1. Create a cognito user pool with oauth attributes.
  2. Run amplify import auth and select the user pool.
  3. update the user pool on the console.
  4. Run amplify status or amplify update auth

Describe the solution you'd like

  1. use amplify update auth command to bring in the latest changes(example: update aws-exports)

or

  1. amplify cli auto detects changes for imported/linked resource

Describe alternatives you've considered

remove and reimport user pool

Additional context

No response

Is this something that you'd be interested in working on?

Would this feature include a breaking change?

stevegroom commented 1 year ago

I would like to encourage the building out of this feature. I have the same issue as @ykethan mentions above.

I'm trying to create a suite of SPA apps using amplify for employees in an enterprise. To achieve this I imagined to create multiple Amplify apps sharing a user and identity pool, that is linked to our SAML IDP (via IAM IC). I imagine that a significant number of your customers are also using SSO and would benefit from a solution that supports these requirements.

For my solution, the apps share a common GraphQL (appSync) backend with focus on different parts of the graph. Imagine a company wide repository with different use cases - siloed or cross project data etc.

monorepo - multiple Amplify front end apps - single shared authentication system - single share appsync and S3 storage.

regards Steve