-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AccessDeniedError: Unable to get backend outputs due to insufficient permissions #2321
Comments
Hey @chrisl777, thank you for reaching. Does the service role added to the application have AmplifyBackendDeployFullAccess attached? |
@ykethan When I go to IAM > Access management > Roles, I actually don't see any roles created for the frontend app. I do however see them created for the backend app. |
Hey @chrisl777, as the frontend end is deployed on a different app, a service role will need to attached to run i was able to reproduce this, attaching the service role mitigated the issue. |
@ykethan I'm not seeing it mentioned in the docs about attaching a service role, it would be a great addition! https://docs.amplify.aws/react/deploy-and-host/fullstack-branching/monorepos/ How do I create that role in |
Hey @chrisl777, manually creating the role should be fine as this can be reused in other apps as well. |
Created a issue on the documentation repository to update the relevant docs pages. will close this issue as we are tracking this on aws-amplify/docs#8163 and #2222, do reach out if you require any additional assistance. |
@ykethan Excellent, thank you for your help! |
Environment information
Describe the bug
Using this command in my amplify.yml:
npx ampx generate outputs --branch $AWS_BRANCH --app-id $AWS_APP_ID
In my frontend app build, it is failing with this error:
Reproduction steps
The amplify.yml:
The text was updated successfully, but these errors were encountered: