amplify-cli
amplify-cli copied to clipboard
Amplify Push Overwrites user-pool-group-precedence.json
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.
- [X] I have read the guide for submitting 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?
16.3.0
Amplify CLI Version
7.6.13
What operating system are you using?
OSX
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
No
Amplify Categories
auth
Amplify Commands
push
Describe the bug
After adding user groups via the CLI, when adding custom policies as per the docs, if one runs amplify push the custom policies are removed.
Expected behavior
Custom policies are applied to the IAM role for the user group
Reproduction steps
Follow the docs https://docs.amplify.aws/cli/auth/groups/#group-access-controls
GraphQL schema(s)
# Put schemas below this line
Log output
# Put your logs below this line
Additional information
No response
Hey @HieronymusLex :wave: thanks for raising this! I was able to successfully reproduce this issue with the latest version of the CLI (7.6.19). Marking as a bug 🙂
Any update/workaround for this? I want to avoid manual updates to different environments if possible