From 0674ed80ae4abcee6e8dd7de84d30c462b8f7605 Mon Sep 17 00:00:00 2001 From: Miguel Campos Date: Fri, 1 Mar 2024 13:43:21 -0800 Subject: [PATCH] more comments --- src/plugins/aws/ssm/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugins/aws/ssm/index.ts b/src/plugins/aws/ssm/index.ts index fdf8d25..31a2c3c 100644 --- a/src/plugins/aws/ssm/index.ts +++ b/src/plugins/aws/ssm/index.ts @@ -368,6 +368,9 @@ export const ssm = async ( await startSsmProcesses(credential, ssmArgs); }; +/** + * Starts the SSM session and any additional processes that are requested for the session to function properly. + */ const startSsmProcesses = async ( credential: AwsCredentials, ssmArgs: SsmArgs @@ -379,7 +382,7 @@ const startSsmProcesses = async ( const processes = commands.map((command, index) => { const args: SpawnSsmNodeOptions = { credential, abortController, command }; - // the first command is always the main SSM session + // the first command is always the main SSM session which inherits stdout and stdin from the parent process return index === 0 ? spawnSsmNode(args) : spawnSubprocessSsmNode(args); });