Skip to content

Instantly share code, notes, and snippets.

View tgsan7654N's full-sized avatar

Thomas tgsan7654N

View GitHub Profile
@slawekzachcial
slawekzachcial / aws-sigv4-ssm-get-parameter.sh
Last active November 24, 2025 02:55
Using CURL to call AWS ReST API, signing request with v4 signature
#!/bin/bash
# Source: https://docs.aws.amazon.com/general/latest/gr/sigv4-signed-request-examples.html
[[ -n "${AWS_ACCESS_KEY_ID}" ]] || { echo "AWS_ACCESS_KEY_ID required" >&2; exit 1; }
[[ -n "${AWS_SECRET_ACCESS_KEY}" ]] || { echo "AWS_SECRET_ACCESS_KEY required" >&2; exit 1; }
readonly parameterName="SlawekTestParam"
readonly method="POST"