You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
arn:aws:iam::aws:policy/AdministratorAccess-Amplify needs cognito-idp:ListIdentityProviders when using "amplify import auth" and continuous deployment
#2285
Open
4 tasks done
jeffie9 opened this issue
Sep 29, 2021
· 4 comments
I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
App Id
No response
Region
No response
Amplify Console feature
Backend builds
Describe the bug
Build raises exception:
User: arn:aws:sts::123456789:assumed-role/amplifyconsole-backend-role/BuildSession is not authorized to perform: cognito-idp:ListIdentityProviders on resource: arn:aws:cognito-idp:us-east-1:123456789:userpool/us-east-1_XYZABC because no identity-based policy allows the cognito-idp:ListIdentityProviders action
Expected behavior
Should be able to connect repository and have first build get as far as running the framework build command (eg. npm run script build). Code build failures would be excused, but never makes it that far.
Reproduction steps
Create app and add to amplify: amplify init
Create or find existing Cognito Identity Pool and User Pool: amplify import auth
Connect repository (eg. GitHub): amplify add hosting
This requires to use or create role. Create new role using selected defaults (Amplify, arn:aws:iam::aws:policy/AdministratorAccess-Amplify)
Build or rebuild app: Exception!
Build Settings
Using default generated amplify.yml
Additional information
As a workaround, add cognito-idp:ListIdentityProviders as inline policy to service role (eg. amplifyconsole-backend-role).
The text was updated successfully, but these errors were encountered:
Hi Jeff👋🏽 , thanks for raising this and for providing the reproduction steps. We will try to reproduce the behavior and I'll update once I have more information.
Before opening, please confirm:
App Id
No response
Region
No response
Amplify Console feature
Backend builds
Describe the bug
Build raises exception:
User: arn:aws:sts::123456789:assumed-role/amplifyconsole-backend-role/BuildSession is not authorized to perform: cognito-idp:ListIdentityProviders on resource: arn:aws:cognito-idp:us-east-1:123456789:userpool/us-east-1_XYZABC because no identity-based policy allows the cognito-idp:ListIdentityProviders action
Expected behavior
Should be able to connect repository and have first build get as far as running the framework build command (eg. npm run script build). Code build failures would be excused, but never makes it that far.
Reproduction steps
This requires to use or create role. Create new role using selected defaults (Amplify, arn:aws:iam::aws:policy/AdministratorAccess-Amplify)
Build Settings
Using default generated amplify.yml
Additional information
As a workaround, add cognito-idp:ListIdentityProviders as inline policy to service role (eg. amplifyconsole-backend-role).
The text was updated successfully, but these errors were encountered: