-
-
Notifications
You must be signed in to change notification settings - Fork 456
Not compatible with nextJs > 10 #1030
Description
Describe the bug
When updating to Next.js > v.10.0.0, we could not deploy the code in github actions.
If someone else have seen something similar, we really want your comments how to resolve this issue.
Actual behavior
error:
AccessDenied: User: arn:aws:iam::***:user/github-cli is not authorized to perform: iam:GetRole on resource: role 7kv1mz9-eng6t1i
at Request.extractError (/home/runner/.serverless/components/registry/npm/@sls-next/serverless-component@1.19.0-alpha.30/node_modules/aws-sdk/lib/protocol/query.js:50:29)
at Request.callListeners (/home/runner/.serverless/components/registry/npm/@sls-next/serverless-component@1.19.0-alpha.30/node_modules/aws-sdk/lib/sequential_executor.js:106:20)
at Request.emit (/home/runner/.serverless/components/registry/npm/@sls-next/serverless-component@1.19.0-alpha.30/node_modules/aws-sdk/lib/sequential_executor.js:78:10)
at Request.emit (/home/runner/.serverless/components/registry/npm/@sls-next/serverless-component@1.19.0-alpha.30/node_modules/aws-sdk/lib/request.js:688:14)
at Request.transition (/home/runner/.serverless/components/registry/npm/@sls-next/serverless-component@1.19.0-alpha.30/node_modules/aws-sdk/lib/request.js:22:10)
at AcceptorStateMachine.runTo (/home/runner/.serverless/components/registry/npm/@sls-next/serverless-component@1.19.0-alpha.30/node_modules/aws-sdk/lib/state_machine.js:14:12)
at /home/runner/.serverless/components/registry/npm/@sls-next/serverless-component@1.19.0-alpha.30/node_modules/aws-sdk/lib/state_machine.js:26:10
at Request. (/home/runner/.serverless/components/registry/npm/@sls-next/serverless-component@1.19.0-alpha.30/node_modules/aws-sdk/lib/request.js:38:9)
at Request. (/home/runner/.serverless/components/registry/npm/@sls-next/serverless-component@1.19.0-alpha.30/node_modules/aws-sdk/lib/request.js:690:12)
at Request.callListeners (/home/runner/.serverless/components/registry/npm/@sls-next/serverless-component@1.19.0-alpha.30/node_modules/aws-sdk/lib/sequential_executor.js:116:18) {
code: 'AccessDenied',
time: 2021-04-28T18:03:15.068Z,
requestId: '1c0a6b75-6e7e-43f6-ba97-68ad34b91f5a',
statusCode: 403,
retryable: false,
retryDelay: 20.23841852847137
Expected behavior
To deploy our code
Steps to reproduce
Upgrade your Next.js project to version > 10.0.0
Screenshots/Code/Logs
Versions
- OS/Environment:
- @sls-next/serverless-component version: 1.19.0-alpha.51
- Next.js version: 10.2.0
Additional context
What we are trying a achieve is actually to be able to use Sentry, but this is dependant of using Next.js > 10.
The funny thing is that 'role 7kv1mz9-eng6t1i' not exists at all in our roles, as we use our own custom roles & know what their names are, and this is not one of them.

