Must specify userName when calling with non-User credentials
See original GitHub issueThis is a Bug Report
Description
We are deploying serverless from AWS Codebuild and with the most recent update the deployment fails with the error Must specify userName when calling with non-User credentials
Fixing the package @1.5.0 fixes the issue and at first glance I think #3070 might have caused the issue since Codebuild uses Docker images in the background but I have not dug enough to figure out the root of it. Deploying from our Docker images still works on v1.5.1, this issue is only affecting our Codebuild deployments.
StackTrace and Error (apologies for the codebuild output format)
20:25:29 Must specify userName when calling with non-User credentials
20:25:29 Stack Trace --------------------------------------------
20:25:29 at Response.<anonymous> (/usr/local/lib/node_modules/serverless/lib/plugins/aws/provider/awsProvider.js:162:20)
20:25:29 at Request.<anonymous> (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/request.js:355:18)
20:25:29 at Request.callListeners (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/sequential_executor.js:105:20)
20:25:29 at Request.emit (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/sequential_executor.js:77:10)
20:25:29 at Request.emit (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/request.js:668:14)
20:25:29 at Request.transition (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/request.js:22:10)
20:25:29 at AcceptorStateMachine.runTo (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/state_machine.js:14:12)
20:25:29 at /usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/state_machine.js:26:10
20:25:29 at Request.<anonymous> (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/request.js:38:9)
20:25:29 at Request.<anonymous> (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/request.js:670:12)
20:25:29 at Request.callListeners (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/sequential_executor.js:115:18)
20:25:29 at Request.emit (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/sequential_executor.js:77:10)
20:25:29 at Request.emit (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/request.js:668:14)
20:25:29 at Request.transition (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/request.js:22:10)
20:25:29 at AcceptorStateMachine.runTo (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/state_machine.js:14:12)
20:25:29 at /usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/state_machine.js:26:10
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (9 by maintainers)
Top Results From Across the Web
aws cli - Unable to get userName because I did not specify ...
An error occurred (ValidationError) when calling the GetUser operation: Must specify userName when calling with non-User credentials.
Read more >Must specify userName when calling with non-User ...
When running lein lambda deploy production to an account where the user is connected via assume-role from a different aws account, ...
Read more >AWS CLI: Get parent user details after sts-assume-role
I took the long way. This approach assumes that the credentials and child account role are defined in your ~/.aws/credentials file.
Read more >claudiajs/claudia
I manage multiple aws accounts and allow users access only by assuming ... Must specify userName when calling with non-User credentials] .
Read more >ListAccessKeys - AWS Identity and Access Management
Returns information about the access key IDs associated with the specified IAM user. If there is none, the operation returns an empty list....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@pmuens Yes it does! I commented on the PR, guess I should have mentioned it here as well. Thanks for looking into it!
Awesome! Glad to hear that!
Will be released on Monday. Thanks for confirming!