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
TABLE=<TableName>; \ | |
echo "$TABLE" >> ~/output.txt; \ | |
aws dynamodb scan \ | |
--table-name "$TABLE" \ | |
--limit 1 \ | |
--query "Items[0]" \ | |
--profile <aws-profile-name> \ | |
>> ~/output.txt; |
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
# Retrieve list of the resource with certain tags | |
aws resourcegroupstaggingapi get-resources --tag-filters '[{"Key":"<key1>","Values":["<value1>"]},{"Key":"<key1>","Values":["<value1>"]}]' |
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 | |
##################################################### | |
# Name: Bash CheatSheet for Mac OSX | |
# | |
# A little overlook of the Bash basics | |
# | |
# Usage: | |
# | |
# Author: J. Le Coupanec | |
# Date: 2014/11/04 |