diff --git a/lib/synth-audio.js b/lib/synth-audio.js index 160c061..ba9fb4f 100644 --- a/lib/synth-audio.js +++ b/lib/synth-audio.js @@ -278,7 +278,7 @@ const synthPolly = async(logger, {credentials, stats, language, voice, engine, t }); } else if (roleArn) { const stsClient = new STSClient({ region}); - const roleToAssume = { RoleArn: 'myRoleArn', RoleSessionName: 'session1' }; + const roleToAssume = { RoleArn: roleArn, RoleSessionName: 'Jambonz Speech' }; const command = new AssumeRoleCommand(roleToAssume); const response = await stsClient.send(command);