Skip to content

Instantly share code, notes, and snippets.

View divv's full-sized avatar

David Tout divv

View GitHub Profile
BUCKET=<bucket>
awsume admin-role
echo "Test 1 (try to use default encryption) - Expected result: SUCCESS"
aws s3 cp test.txt s3://$BUCKET/kms_test_1.txt
echo "Test 2 (specify correct encryption headers) - Expected result: SUCCESS"
@divv
divv / git-credential-helper-helper
Created March 30, 2020 00:22
git-credential-helper-helper
#!/bin/bash
set -e
URL=$1
REMOTENAME=$2
PROFILE=$3
git remote add $REMOTENAME $URL
git config --local credential.$URL.helper "!aws codecommit credential-helper --profile=$PROFILE"
{"lastUpload":"2020-06-15T00:45:11.281Z","extensionVersion":"v3.4.3"}