Skip to content

Instantly share code, notes, and snippets.

@leflamm
leflamm / last-codebuild-log.sh
Last active Apr 30, 2020
Easily view the complete output of the last run of a specific AWS Codebuild job in your console. Useful for large outputs (>10k lines) for which the AWS Codebuild web console is a bit uncomfortable.
View last-codebuild-log.sh
#!/bin/bash
set -e
[ $# -ne 1 ] && {
echo "Usage: ${0} <AWS Codebuild Job Name>"
exit 1
}
command -v aws > /dev/null || {
@leflamm
leflamm / delete-all-cloudsearch-documents.sh
Created Dec 19, 2018 — forked from jthomerson/delete-all-cloudsearch-documents.sh
Delete all CloudSearch documents in a given domain
View delete-all-cloudsearch-documents.sh
#!/bin/bash
# This script will delete *all* documents in a CloudSearch domain.
# USE WITH EXTREME CAUTION
# Note: depends on the AWS CLI SDK being installed, as well as jq
# For jq, see: https://stedolan.github.io/jq/ and https://jqplay.org/
if [[ ! $# -eq 2 || $1 != "--doc-domain" || ! $2 =~ ^https://.*$ ]]; then
echo "Must define --doc-domain argument (e.g. --doc-domain https://somedomain.aws.com)";