Skip to content

Commit

Permalink
more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
GGonryun committed Mar 1, 2024
1 parent 6057164 commit 0674ed8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/plugins/aws/ssm/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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);
});

Expand Down

0 comments on commit 0674ed8

Please sign in to comment.