aws-amplify / aws-amplify/amplify-cli

unable to add AdminQueries to project when choosing not to restrict to a group

Open
#10,114 3 comments 0 reactions 0 assignees View on GitHub
auth bug p3
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?

pnpm

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

16.14.2

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

n/a

### Amplify Categories

auth

### Amplify Commands

Not applicable

### Describe the bug

When adding or updating auth and choosing to add AdminQueries to the project, the REST API and function are not added to the project.

### Expected behavior

AdminQueries are added

### Reproduction steps

1. `amplify init -y`
2. `amplify add auth` > walkthrough all configurations
3. when prompted, select `Y` to add AdminQueries
4. choose `N` for "Do you want to restrict access to the admin queries API to a specific Group"
5. observe AdminQueries are not added

### GraphQL schema(s)

```graphql
# Put schemas below this line

```

### Log output

```
# Put your logs below this line

```

### Additional information

_No response_

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with the listed amplify init and amplify add auth steps, especially choosing not to restrict the AdminQueries API to a group. Trace the auth AdminQueries setup flow and verify that the REST API and function are added when that option is selected; done means the generated project includes both resources.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, typescript
Domain
api, authentication, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.