mirror of
https://github.com/aws-actions/configure-aws-credentials.git
synced 2026-09-03 06:05:04 +09:00
chore: Update dist
This commit is contained in:
+5
-1
@@ -207,7 +207,11 @@ async function assumeRole(params) {
|
|||||||
PolicyArns: managedSessionPolicies?.length ? managedSessionPolicies : undefined,
|
PolicyArns: managedSessionPolicies?.length ? managedSessionPolicies : undefined,
|
||||||
};
|
};
|
||||||
const keys = Object.keys(commonAssumeRoleParams);
|
const keys = Object.keys(commonAssumeRoleParams);
|
||||||
keys.forEach((k) => commonAssumeRoleParams[k] === undefined && delete commonAssumeRoleParams[k]);
|
keys.forEach((k) => {
|
||||||
|
if (commonAssumeRoleParams[k] === undefined) {
|
||||||
|
delete commonAssumeRoleParams[k];
|
||||||
|
}
|
||||||
|
});
|
||||||
// Instantiate STS client
|
// Instantiate STS client
|
||||||
const stsClient = credentialsClient.stsClient;
|
const stsClient = credentialsClient.stsClient;
|
||||||
// Assume role using one of three methods
|
// Assume role using one of three methods
|
||||||
|
|||||||
Reference in New Issue
Block a user