-
Notifications
You must be signed in to change notification settings - Fork 594
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
Profile ############# requires a role to be assumed, but no role assumption callback was provided. #1998
Comments
Transferring the issue to the correct repository. |
Hey @edpega thanks for opening this issue. Is it possible to to switch to the correct package i.e https://www.npmjs.com/package/@aws-sdk/client-appstream |
This issue has not received a response in 1 week. If you still think there is a problem, please leave a comment to avoid the issue from automatically closing. |
Issue remains with new package: npm install @aws-sdk/client-appstream Code snippet: const {fromIni} = require("@aws-sdk/credential-provider-ini"); app.get('/test', (req,res) => { }); app.listen(port, () => { Error Error: Profile XXXXXXXXXXXX requires a role to be assumed, but no role assumption callback was provided. |
@edpega I've got the same problem. Have you found any workaround? |
I have not. |
I believe I re-raised this issue here: #2087 but have included a work around function |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread. |
Confirm by changing [ ] to [x] below:
Profile selection causes error:
Error Error: Profile ############# requires a role to be assumed, but no role assumption callback was provided.
Code snippet:
const express = require('express')
const app = express()
const port = 8082
const exec = require("child_process").exec
const {
AppStreamClient
} = require("@aws-sdk/client-appstream-node");
const {fromIni} = require("@aws-sdk/credential-provider-ini");
const appStream = new AppStreamClient({
credentials: fromIni({profile: '#############'}),
region: 'us-east-1'});
app.get('/test', (req,res) => {
var params = { Names: ['as-stack-1']};
const run = async() => {
try {
const data = await appStream.send(new describeStacksCommand(params));
res.header("Content-Type","application/json");
res.status(200).send(data);
} catch (err) {
console.log("Error", err);
}
}
run();
});
app.listen(port, () => {
console.log('Server running at http://127.0.0.1:' + port +'/');
})
The text was updated successfully, but these errors were encountered: