Last active
October 1, 2018 04:30
-
-
Save tomwwright/d6a50a2996ddc3eedf57ad8a8c700f49 to your computer and use it in GitHub Desktop.
Medium : Ansible and the AWS CLI : filtering examples https://medium.com/@tomwwright/ansible-and-the-aws-cli-no-module-no-problem-27580d36ef2d
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
# describing a non-existent Aurora cluster results in an error | |
$ aws rds describe-db-clusters --db-cluster-identifier doesnotexist | |
An error occurred (DBClusterNotFoundFault) when calling the DescribeDBClusters operation: DBCluster doesnotexist not found. | |
# but using --filter to describe a non-existent Aurora cluster is ok | |
$ aws rds describe-db-clusters --filters Name=db-cluster-id,Values=doesnotexist | |
{ | |
"DBClusters": [] | |
} | |
# and describing a non-existent Elasticsearch domain is ok -- make up your mind AWS... | |
$ aws es describe-elasticsearch-domains --domain-names doesnotexist | |
{ | |
"DomainStatusList": [] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment