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 | |
# 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 |
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 | |
# 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 |