Skip to content

Instantly share code, notes, and snippets.

@elbik
elbik / gist:7c06a0b3aff5b43fe66b6e9b0f03c062
Created August 23, 2023 13:26
the command writes to output.txt file the item retrieved from the defined DybamoDB.
TABLE=<TableName>; \
echo "$TABLE" >> ~/output.txt; \
aws dynamodb scan \
--table-name "$TABLE" \
--limit 1 \
--query "Items[0]" \
--profile <aws-profile-name> \
>> ~/output.txt;
@elbik
elbik / aws-cli-commands
Created January 14, 2020 10:15
AWS cli - useful commands
# Retrieve list of the resource with certain tags
aws resourcegroupstaggingapi get-resources --tag-filters '[{"Key":"<key1>","Values":["<value1>"]},{"Key":"<key1>","Values":["<value1>"]}]'
@elbik
elbik / bash-cheatsheet.sh
Created July 24, 2017 14:33 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04