aws-amplify / aws-amplify/amplify-cli
Best way to add user pool groups with attributes?
- 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
Assessment
This issue has not been assessed yet.