fix: correct outputs for role chaining (#1633)

re-instantiate stsClient when roleChaining

technically a breaking change
This commit is contained in:
Michael Lehmann authored and GitHub committed 2026-01-29 10:47:17 -08:00
1 parent a7a2c1125c
commit 7ceaf96edc
3 files changed
+14 -4

No files matched your search

+4 -1
View File
@@ -121,7 +121,10 @@ export async function run() {
exportRegion(region, outputEnvCredentials);
// Instantiate credentials client
const clientProps: { region: string; proxyServer?: string; noProxy?: string } = { region };
const clientProps: { region: string; proxyServer?: string; noProxy?: string; roleChaining: boolean } = {
region,
roleChaining,
};
if (proxyServer) clientProps.proxyServer = proxyServer;
if (noProxy) clientProps.noProxy = noProxy;
const credentialsClient = new CredentialsClient(clientProps);