Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# https://gist.github.com/afunsten
# https://gist.github.com/davidejones/d05f51df75e659111227
#requirements
type jq
type openssl
while getopts :b:f:o:r: option; do
case "${option}" in
@afunsten
afunsten / get_s3_file.sh
Last active August 4, 2018 03:35 — forked from davidejones/get_s3_file.sh
curl get file from private s3 with iam role
#!/bin/bash
# https://gist.github.com/afunsten
# https://gist.github.com/davidejones/d05f51df75e659111227
#example: bash get_s3_file.sh -b some-bucket-name -f some-file-key-path -o some-output-file
#you must first give root user of the aws acct bucket access
#you must also give user role bucket access
while getopts :b:f:o:r: option; do
case "${option}" in