Skip to content
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

TypeError: sts.assumeRole is not a function #182

Open
atrun opened this issue Apr 14, 2019 · 1 comment
Open

TypeError: sts.assumeRole is not a function #182

atrun opened this issue Apr 14, 2019 · 1 comment

Comments

@atrun
Copy link

atrun commented Apr 14, 2019

TypeError: sts.assumeRole is not a function
at d:\H5\vh5\server.js:64:7
at Layer.handle [as handle_request] (d:\H5\vh5\node_modules\express\lib\router\layer.js:95:5)
at next (d:\H5\vh5\node_modules\express\lib\router\route.js:131:13)
at Route.dispatch (d:\H5\vh5\node_modules\express\lib\router\route.js:112:3)
at Layer.handle [as handle_request] (d:\H5\vh5\node_modules\express\lib\router\layer.js:95:5)
at d:\H5\vh5\node_modules\express\lib\router\index.js:277:22
at Function.process_params (d:\H5\vh5\node_modules\express\lib\router\index.js:330:12)
at next (d:\H5\vh5\node_modules\express\lib\router\index.js:271:10)
at SendStream.error (d:\H5\vh5\node_modules\serve-static\index.js:120:7)
at SendStream.emit (events.js:189:13)

@atrun
Copy link
Author

atrun commented Apr 18, 2019

STS坑多呀,但还是解决了。

改了两处就可以用了。

apiVersion: '2015-04-01'

// 构造AssumeRole请求
sts.assumeRole({
Action: 'AssumeRole',
RoleArn: roleArn,

要加“Action”

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant