aws-amplify / aws-amplify/amplify-cli

Best way to add user pool groups with attributes?

Open
#6,444 1 comment 0 reactions 0 assignees View on GitHub
auth feature-request p4
Dominant language
TypeScript
Stars
2.9k
Forks
825
Avg merge
11d 23h
Merged PRs (30d)
2

Description

I need to add about 80 groups to my User Pool, and would like to keep this part of the Cloud Formation templates. When I add an object to the amplify/backend/auth/userPoolGroups/user-pool-group-precedence.json like the following, all the groups and IAM roles get generated in template.json on an `amplify push`:

```
[
{
groupName: "1",
precedence: 10
},
{
groupName: "2",
precedence: 10
}
]
```

But I can't get a description added, which would be very useful with the numeric group names. Adding additional properties for AWS::Cognito::UserPoolGroup to the same file doesn't seem to do anything, and adding them to template.json gets overwritten.

Cheers,

**Which Category is your question related to?**
Auth

**Amplify CLI Version**

4.41.2

**What AWS Services are you utilizing?**
Cognito

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.