Skip to content

Clarify limitations of SSM SendCommand action #1719

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 2, 2025
Merged
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
3 changes: 2 additions & 1 deletion content/en/user-guide/aws/ssm/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@

### Send command using SSM

You can use the [`SendCommand`](https://docs.aws.amazon.com/systems-manager/latest/APIReference/API_SendCommand.html) API to send commands to the EC2 instance.
You can use the [`SendCommand`](https://docs.aws.amazon.com/systems-manager/latest/APIReference/API_SendCommand.html) API to send a command to the EC2 instance.
The following command sends a `cat lsb-release` command in the `/etc` directory to the EC2 instance.

{{< command >}}
Expand Down Expand Up @@ -149,5 +149,6 @@
The other limitations of LocalStack SSM are:

- Dockerized instances only support `AWS-RunShellScript` commands.
- [`SendCommand`](https://docs.aws.amazon.com/systems-manager/latest/APIReference/API_SendCommand.html) action only runs 1 command per invocation. If an array of commands is passed then only the first command is executed.

Check failure on line 152 in content/en/user-guide/aws/ssm/index.md

View workflow job for this annotation

GitHub Actions / Markdown Lint

Max 1 sentence should be on a line

content/en/user-guide/aws/ssm/index.md:152:145 max-one-sentence-per-line Max 1 sentence should be on a line [Context: "ocation. If an"] https://github.com/aepfli/markdownlint-rule-max-one-sentence-per-line

Check failure on line 152 in content/en/user-guide/aws/ssm/index.md

View workflow job for this annotation

GitHub Actions / Markdown Lint

Max 1 sentence should be on a line

content/en/user-guide/aws/ssm/index.md:152:145 max-one-sentence-per-line Max 1 sentence should be on a line [Context: "ocation. If an"] https://github.com/aepfli/markdownlint-rule-max-one-sentence-per-line
- Commands returning non-zero codes won't capture standard output or error streams, leaving them empty.
- Shell constructs such as job controls (`&&`, `||`), and redirection (`>`) are not supported.
Loading