Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion packages/core/resources/ec2_connect
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ _require_nolog() {

_require() {
_require_nolog "$@"
_log "$1=$2"
}

_ec2() {
Expand All @@ -52,6 +51,12 @@ _main() {
_require SESSION_ID "${SESSION_ID:-}"
_require LOG_FILE_LOCATION "${LOG_FILE_LOCATION:-}"

# Avoid logging sensitive data
_log "AWS_SSM_CLI=$AWS_SSM_CLI"
_log "AWS_REGION=$AWS_REGION"
_log SESSION_ID "${SESSION_ID:-}"
_log "LOG_FILE_LOCATION=$LOG_FILE_LOCATION"

_ec2 "$AWS_SSM_CLI" "$AWS_REGION" "$STREAM_URL" "$TOKEN" "$SESSION_ID"
}

Expand Down
1 change: 1 addition & 0 deletions packages/core/src/awsService/ec2/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ export class Ec2Connecter implements vscode.Disposable {
await this.addActiveSession(selection.instanceId, ssmSession.SessionId!)

const vars = getEc2SsmEnv(selection, ssm, ssmSession)
getLogger().info(`ec2: connect script logs at ${vars.LOG_FILE_LOCATION}`)
const envProvider = async () => {
return { [sshAgentSocketVariable]: await startSshAgent(), ...vars }
}
Expand Down
Loading