aws-amplify / aws-amplify/amplify-cli

casing in user pool groups ignored on role creation causes push failure

Open
#13,103 0 comments 0 reactions 0 assignees View on GitHub
auth bug p3 platform-push
Dominant language
TypeScript
Stars
2.9k
Forks
825
Avg merge
11d 23h
Merged PRs (30d)
2

Description

### How did you install the Amplify CLI?

_No response_

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

_No response_

### Amplify CLI Version

12.2.4

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

### Describe the bug

Creating a user pool group say Admin and admin will causes the following failure

```
🛑 The following resources failed to deploy:
Resource Name: AdminGroupRole (AWS::IAM::Role)
Event Type: create
Reason: us-east-1_anccsdc-AdminGroupRole already exists
```

### Expected behavior

correct casing when creating user pool groups and no push failures

### Reproduction steps

1. `amplify init`
2. `amplify add auth`
3. add user pool groups -> `admin`
4. `amplify push`
5. `amplify update auth`
6. add user pool groups -> `Admin`
7. `amplify push`

### Project Identifier

_No response_

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

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.