Skip to content

Commit

Permalink
fix(amplify-provider-awscloudformation): pass assumeRoleRequest (#6264)
Browse files Browse the repository at this point in the history
The constructed request parameter for `assumeRole` wasn't used. Thus, AWS profile using `role_arn`
never succeeded. This commit fixes it and now the parameter is passed to `assumeRole`.
  • Loading branch information
riywo committed Jan 7, 2021
1 parent f9c72e1 commit 08820b2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ async function getRoleCredentials(context, profileName, profileConfig) {
const log = logger('getRoleCredentials.sts.assumeRole', [assumeRoleRequest]);
try {
log();
const roleData = await sts.assumeRole().promise();
const roleData = await sts.assumeRole(assumeRoleRequest).promise();
roleCredentials = {
accessKeyId: roleData.Credentials.AccessKeyId,
secretAccessKey: roleData.Credentials.SecretAccessKey,
Expand Down

0 comments on commit 08820b2

Please sign in to comment.