Skip to content

Instantly share code, notes, and snippets.

Marc Castrovinci casmarc

  • HP Inc
  • Boise ID
Block or report user

Report or block casmarc

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
davidejones /
Last active Dec 12, 2019
curl get file from private s3 with iam role
aws_access_key_id=`curl${instance_profile} | grep AccessKeyId | cut -d':' -f2 | sed 's/[^0-9A-Z]*//g'`
aws_secret_access_key=`curl${instance_profile} | grep SecretAccessKey | cut -d':' -f2 | sed 's/[^0-9A-Za-z/+=]*//g'`
token=`curl -s${instance_profile} | sed -n '/Token/{p;}' | cut -f4 -d'"'`
date="`date +'%a, %d %b %Y %H:%M:%S %z'`"
You can’t perform that action at this time.