Created
September 3, 2020 17:25
-
-
Save darko-mesaros/4cf6b7977ecff1371d26f93a2580aa2a to your computer and use it in GitHub Desktop.
Commands used on the AWS Secrets Manager Stream
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
# 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