aws-amplify / aws-amplify/amplify-studio

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

Open
#1,093 3 comments 0 reactions 0 assignees View on GitHub
auth feature-request
Dominant language
No language data
Stars
135
Forks
32
PR merge metrics
No merged PRs in 30d

Description

### 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

- created new group in 'User management' tab in amplify studio.
- `amplify pull`
- I would expect to see `userPoolGroups` resource in my project, however I only have
```
┌──────────┬─────────────────────────┬───────────┬───────────────────┐
│ Category │ Resource name │ Operation │ Provider plugin │
├──────────┼─────────────────────────┼───────────┼───────────────────┤
│ Api │ medspaceacademy │ No Change │ awscloudformation │
├──────────┼─────────────────────────┼───────────┼───────────────────┤
│ Auth │ medspaceacademyc70e7951 │ No Change │ awscloudformation │
├──────────┼─────────────────────────┼───────────┼───────────────────┤
│ Storage │ medspaceQuestions │ No Change │ awscloudformation │
└──────────┴─────────────────────────┴───────────┴───────────────────┘
```

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:

- [X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
- [X] I have removed any sensitive information from my code snippets and submission.

Contributor guide

Open the contributing guide

Research direction

Reproduce on Windows with Amplify CLI 12.10.0 and Node.js v18.16.1: create a Cognito group in Amplify Studio, then run `amplify pull` against the existing user pool. Compare the pulled project resources with the Studio-created group; done means the local Amplify project recognizes the userPoolGroups resource without deleting or recreating the pool.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, node.js
Domain
authentication, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.