Created
November 21, 2018 18:42
-
-
Save serverhorror/3eee0033e0c4a29cfa19c6faaf49acb1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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/bash | |
aws --no-verify-ssl ssm get-parameters-by-path --path /aws/service/ami-amazon-linux-latest | |
aws --no-verify-ssl ssm get-parameters-by-path --path /aws/service/ami-amazon-linux-latest --query 'Parameters[?Name==`/aws/service/ami-amazon-linux-latest/amzn2-ami-minimal-hvm-x86_64-ebs`]' | |
aws --no-verify-ssl ssm get-parameters-by-path --path /aws/service/ami-amazon-linux-latest --query 'Parameters[]|[?contains(Name, `ami-amazon-linux-latest/amzn2`)]' | |
aws --no-verify-ssl ssm get-parameters-by-path --path /aws/service/ami-amazon-linux-latest --query 'Parameters[]|[?contains(Name, `ami-amazon-linux-latest/amzn2`)]|[?Value==`ami-09693313102a30b2c`]' | |
aws --no-verify-ssl ssm get-parameters-by-path --path /aws/service/ami-amazon-linux-latest --query 'Parameters[]|[?contains(Name, `ami-amazon-linux-latest/amzn2`)]|[?Value!=`ami-09693313102a30b2c`]' | |
aws --no-verify-ssl ssm get-parameters-by-path --path /aws/service/ami-amazon-linux-latest --query 'Parameters[]|[?contains(Name, `ami-amazon-linux-latest/amzn2`)]|[?Value!=`ami-09693313102a30b2c`]|[1]' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment