aws / aws/amazon-ssm-agent

Error propagate like in SSH from remote machine

Open
#579 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
1.2k
Forks
357
PR merge metrics
No merged PRs in 30d

Description

I am looking to replace my ssh sessions with ssm sessions and in my CICD pipelines, I want to use SSM manager to pass commands and run scripts on remote machine. So, to watch live logs, I am using
```
aws ssm start-session \
--document-name 'AWS-StartInteractiveCommand' \
```
Issue I am facing is, when the command I executed in the remote fails, I do not get the error code to the host machine.

Is there a way to do this? To get the exit codes from the host machine?

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the AWS-StartInteractiveCommand session behavior described in the issue and how command status is reported to the host. Done would mean determining whether remote command exit codes can be propagated to the initiating machine, and documenting or implementing the supported behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws
Domain
cloud, devops
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.