aws-amplify / amplify-studio

AWS Amplify Studio (Formerly Admin UI)
134 stars 31 forks source link

`amplify pull` does not fetch Cognito userGroups created from amplify studio #1093

Open Eliav2 opened 4 months ago

Eliav2 commented 4 months ago

How did you install the Amplify CLI?

npm

If applicable, what version of Node.js are you using?

v18.16.1

Amplify CLI Version

12.10.0

What operating system are you using?

windows

Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.

only from Amplify studio. not via aws services directly.

Describe the bug

this cognito pull is already hosting some real users. I can't delete it and recreate it using the cli. how do I effectively importing it so my local amplify cli would recognize this user pool?

Expected behavior

.

Reproduction steps

.

Project Identifier

.]

Log output

``` # Put your logs below this line ```

Additional information

No response

Before submitting, please confirm:

ykethan commented 4 months ago

Hey @Eliav2, thank you for reaching. we should be able to add the group using Amplify CLI by running amplify update auth and select Create or update Cognito user pool groups which should create a user pool group managed by Amplify CLI. Do remove the user pool group on the Amplify Studio before adding and pushing on AmplifyCLI to prevent any push failures.

Eliav2 commented 4 months ago

Yes i know that deleting the pool from amplify studio and recreating it from cli would work. But i can't delete this pool. Does there is any way to 'pull' or 'import' this pool so amplify cli would recognize it? After all, i can just create a new user pool directly from amplify studio. If amplify cli can't be aware of user pools created by amplify studio there should be a clear red warning that notify this or just removing this option completely from amplify studio.

ykethan commented 4 months ago

Hey @Eliav2, you should be able to pull the user pool from studio but it appears pulling the user pool groups created on studio is currently not supported. marking this as feature-request and transferring to amplify studio repository for tracking.