Skip to content

Releases

v2.1.0

Choose a tag to compare

@github-actions github-actions released this 09 Oct 22:19
debb957

What's new

  • Add Tab completion for command names and parameter paths, including relative paths, region prefixes, directory suggestions, and put name=... (#39; fixes #31).
  • Cache completion results briefly in memory and invalidate them after writes or profile/region changes. Remote lookups are bounded and fetch metadata only, never parameter values.
  • Upgrade the Go toolchain to 1.27.2 to address standard-library vulnerabilities.
  • Update github.com/mattn/go-shellwords to 1.0.16 (#38).

Upgrade notes

Path completion requires ssm:DescribeParameters. Source builds require Go 1.27.2 or later.

Download the archive for your OS and architecture below. SHA-256 checksums and a source archive are included.

Full changelog: v2.0.0...v2.1.0

v2.0.0

Choose a tag to compare

@github-actions github-actions released this 24 Sep 23:16
5c2115a

ssmsh v2.0.0

ssmsh 2.0 modernizes the project with Go 1.27.1, AWS SDK for Go v2, a new interactive shell, safer parameter mutations, reliable error handling, structured output modes, and a rebuilt cross-platform release pipeline.

Highlights

  • Migrated from AWS SDK for Go v1 to v2.
  • Added support for the full AWS credential chain, including IAM Identity Center, web identity, and workload credentials.
  • Added text, json, and value-only output modes.
  • Added command timeouts, Ctrl-C cancellation, and dry-run support.
  • Added value-file and value-stdin for safer secret input.
  • Copy now preserves descriptions, patterns, data types, tiers, policies, KMS configuration, and tags.
  • Move completes all destination copies before deleting source parameters.
  • Added deterministic ordering, pagination, and API-limit-aware batching.
  • Added CI across Linux, macOS, and Windows, plus race detection, linting, vulnerability scanning, and release archives.

Breaking changes

Review these changes before upgrading automation or shared environments.

Output has changed

get and history now produce tab-separated text output by default. Scripts that parse the previous Go structure representation must be updated.

Select an explicit output format when scripting:

ssmsh -output value get /service/api/password
ssmsh -output json get /service/api/endpoint

JSON now uses application-owned records instead of directly serializing AWS SDK types. Field capitalization is retained, but absent strings and collections may be represented differently. Check consumers that distinguish null from empty values.

Errors now produce failure exit codes

Inline and batch commands now return a nonzero status for parsing, validation, configuration, and AWS errors.

Batch execution stops at the first failure. Previous versions could print an error, continue execution, and exit successfully.

Missing parameters fail the complete get

When multiple names are requested, get now fails if any name is missing. Previous versions returned the parameters that existed and ignored missing names.

Configuration parsing is stricter

Configuration files may contain only documented settings within [default]. Unknown sections, unknown keys, malformed booleans, and settings outside [default] are rejected.

Passing a nonexistent file with -config is now an error. A missing default ~/.ssmshrc remains allowed.

Credential selection may differ

When no profile is configured, ssmsh now uses the complete AWS SDK credential chain instead of explicitly selecting the shared default profile.

Set AWS_PROFILE, configure profile in ~/.ssmshrc, or run profile NAME when a specific shared profile is required.

Copy and move may require additional IAM permissions

Copy and move now preserve parameter tags. The executing identity may therefore need:

ssm:ListTagsForResource
ssm:AddTagsToResource

Existing IAM policies that were sufficient for v1 copy operations may need to be updated.

Cross-region SecureString copies require a destination key

A cross-region SecureString copy must specify a KMS key in the destination region:

cp key=alias/destination -r us-east-1:/service us-west-2:/service

The active destination key can also be set with key KEY_ID_OR_ALIAS.

Command validation is stricter

Unknown put options, conflicting value sources, malformed region/path syntax, and overlapping copy or move destinations now return errors.

Automation relying on ignored options or permissive parsing must be updated.

Interactive shell changes

The prompt now displays the active profile, region, and Parameter Store path:

[production@us-west-2] /service/api>

The legacy clear command was removed. Single-word inline commands such as ssmsh ls now execute directly instead of opening an interactive shell.

Build requirements changed

Source builds require Go 1.27.1.

make build now writes bin/ssmsh. Use make install to install through the Go toolchain. The old platform-specific Make targets were removed.

Homebrew installations now build from the published source archive.

Go package APIs are incompatible

Downstream Go programs importing ssmsh packages must migrate to context-aware APIs and AWS SDK for Go v2 types. Several method signatures and interfaces changed.

New options

-output text|json|value
-timeout DURATION
-dry-run

Commands have a two-minute timeout by default. For longer operations, supply a larger duration:

ssmsh -timeout 10m cp -r /service /backup

Mutation commands also accept --dry-run:

ssmsh -dry-run rm -r /service/obsolete
ssmsh cp --dry-run -r /service /backup

put supports input from a file or standard input:

ssmsh put name=/service/private-key value-file=private.pem type=SecureString

printf '%s' "$SECRET" |
  ssmsh put name=/service/password value-stdin=true type=SecureString

File and standard-input values preserve whitespace and newlines. value-stdin cannot be combined with -file -, because both consume the same input stream.

Upgrade checklist

  • Update scripts for the new output and exit-status behavior.
  • Check JSON consumers for differences between absent and empty values.
  • Validate existing .ssmshrc files against the documented settings.
  • Confirm which AWS profile or credential source will be selected.
  • Add tag permissions to IAM policies used for copy and move.
  • Configure a destination-region KMS key for cross-region SecureString copies.
  • Set a longer timeout for operations that may exceed two minutes.
  • Upgrade development environments to Go 1.27.1.
  • Update downstream Go integrations to AWS SDK v2 APIs.

See CHANGELOG.md for additional details.

v1.4.9

Choose a tag to compare

@github-actions github-actions released this 14 Feb 19:13
aa1df0e

Changelog

  • aa1df0e changed filepath.Clean usage to path.Clean (#33)

Thanks to @mtmelvin for this contribution!

v1.4.7: Adds arm64 binaries

Choose a tag to compare

@github-actions github-actions released this 17 Feb 23:57
545fd23

Changelog

  • 545fd23 update goreleaser for arm64

v1.4.6

Choose a tag to compare

@github-actions github-actions released this 17 Feb 23:09
bd280eb

Changelog

  • bd280eb Fixes put command when there is no config file (#30)

v1.4.5

Choose a tag to compare

@github-actions github-actions released this 01 Feb 20:41
2d360bc

This release adds support for Homebrew using the goreleaser tool. Special thanks to @dbirks for this contribution!

Changelog

2d360bc Add goreleaser (#27)

v1.4.4: Improved error checking

Choose a tag to compare

@bwhaley bwhaley released this 09 Nov 05:46
786ea92

This patch has improved error checking and resolves some linting issues. Thanks to @dbirks for the GitHub Actions contribution that detected these issues!

v1.4.3: Add JSON output format for get and history commands

Choose a tag to compare

@bwhaley bwhaley released this 17 Aug 02:43

With this release, you can add a line like

output=json

to your .ssmshrc file to print the output of get and history commands in JSON format. The fields of the JSON results will be the same as in the respective Go structs. See the Parameter and ParameterHistory docs. All other results are printed in plain text/non-formatted output (e.g. not JSON).

v1.4.2: Fixes an issue with extra spaces in multiline values

Choose a tag to compare

@bwhaley bwhaley released this 10 Mar 19:09
089506d

When putting parameters with values that contain line breaks, an extraneous space was being added at the end of each line. This release resolves that issue.

v1.4.1: Fixes the `key` command

Choose a tag to compare

@bwhaley bwhaley released this 10 Dec 20:41

Previously, entering key with no arguments caused a crash. This release now prints the usage statement as intended. Also bumped Go to version 1.13.

⌂ 换网址