aws-amplify / aws-amplify/amplify-cli
Support for cognito Userpool Groups in amplify analytics category
- Dominant language
- TypeScript
- Stars
- 2.9k
- Forks
- 825
- Avg merge
- 11d 23h
- Merged PRs (30d)
- 2
Description
### Before opening, please confirm:
- [X] I have installed the latest version of the Amplify CLI (see above), and confirmed that the issue still persists.
- [X] I have [searched for duplicate or closed issues](https://github.com/aws-amplify/amplify-cli/issues?q=is%3Aissue+).
- [X] I have read the guide for [submitting bug reports](https://github.com/aws-amplify/amplify-cli/blob/master/CONTRIBUTING.md#bug-reports).
- [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.
### How did you install the Amplify CLI?
npm
### If applicable, what version of Node.js are you using?
v14.17.3
### Amplify CLI Version
7.6.26
### What operating system are you using?
Mac
### Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
No
### Amplify Categories
analytics
### Amplify Commands
update
### Describe the bug
When User is a part of Cognito Userpool group and tries to record analytic events , it missing necessary permissions in cloudformation to allow Cognito Group to access pinpoint service.
### Expected behavior
There should be Dx like storage/API category to allow/revoke permissions per cognito userPool Group and also for individual Users
For eg:

Above Dx is storage Workflow
### Reproduction steps
1. amplify add auth
2. amplify add analytics
Check there are no user group roles defined in the Userpool group Cloudformation template and the template only have an auth and unauth role, which is not assumed by the logged in user when user groups are enabled.
### GraphQL schema(s)
```graphql
# Put schemas below this line
```
### Log output
```
# Put your logs below this line
```
### Additional information
For more context: https://github.com/aws-amplify/amplify-cli/issues/4772
Contributor guide
Assessment
This issue has not been assessed yet.