Last active
December 21, 2023 03:53
-
-
Save doncote/d7b8dbe8119c5e3133f969721ca2522b to your computer and use it in GitHub Desktop.
Create multiple AWS SSM parameters from a json file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
jq -c '.[]' params.json | while read i; do | |
aws ssm put-parameter --cli-input-json $i | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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