Skip to content

Instantly share code, notes, and snippets.

@darko-mesaros
Created September 3, 2020 17:25
Show Gist options
  • Save darko-mesaros/4cf6b7977ecff1371d26f93a2580aa2a to your computer and use it in GitHub Desktop.
Save darko-mesaros/4cf6b7977ecff1371d26f93a2580aa2a to your computer and use it in GitHub Desktop.
Commands used on the AWS Secrets Manager Stream
# Get all Latest Windows AMIs
aws ssm get-parameters-by-path \
--path /aws/service/ami-windows-latest
# Get all regions where Cloud9 is available inj
aws ssm get-parameters-by-path \
--path /aws/service/global-infrastructure/services/cloud9/regions --output json \
| jq .Parameters[].Value | sort
# Get all services available in the af-south-1 region
aws ssm get-parameters-by-path \
--path /aws/service/global-infrastructure/regions/af-south-1/services --output json \
| jq .Parameters[].Name | sort | head -10
# Get all regions
aws ssm get-parameters-by-path \
--path /aws/service/global-infrastructure/regions --output json | \
jq .Parameters[].Name | sort
# Query a secret string from Secrets manager with AWS CLI
aws secretsmanager get-secret-value --secret-id supersecretsecretid | jq .SecretString
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment