Skip to content

Instantly share code, notes, and snippets.

@khaitranhq
Forked from doncote/create_aws_params.sh
Created December 21, 2023 03:53
Show Gist options
  • Save khaitranhq/6b3305bc5c8b21e55c556a7661cdf97f to your computer and use it in GitHub Desktop.
Save khaitranhq/6b3305bc5c8b21e55c556a7661cdf97f to your computer and use it in GitHub Desktop.
Create multiple AWS SSM parameters from a json file
#!/bin/sh
jq -c '.[]' params.json | while read i; do
aws ssm put-parameter --cli-input-json $i
done
aws ssm get-parameters-by-path --path "/prod/streaming-service" --query "Parameters[*].{Name:Name,Value:Value}" --with-decryption | pbcopy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment