When using referenceAuth to reference an user pool created on a different Amplify app(containing auth and storage).
Adding storage to the app will override the auth and unauth roles storage access policy
to summarize:
app1 -> auth and storage
app2 -> reference app1 auth and storage
Reproduction steps
simple repo steps
create a sandbox with auth and storage
verify the roles
use referenceAuth to use the previously created user pool and identity pool
add storage
switch to different --identifier on sandbox deploy
verify the roles and observe the policy was overridden
Environment information
Describe the bug
https://discord.com/channels/705853757799399426/1308582280293515324/1308582280293515324
When using referenceAuth to reference an user pool created on a different Amplify app(containing auth and storage). Adding storage to the app will override the auth and unauth roles storage access policy
to summarize: app1 -> auth and storage app2 -> reference app1 auth and storage
Reproduction steps
simple repo steps
--identifier
on sandbox deploy