Skip to content

Instantly share code, notes, and snippets.

@BenSlabbert
Created October 5, 2020 17:22
Show Gist options
  • Save BenSlabbert/58e2e1a4436b06ceac351a6c6a81a305 to your computer and use it in GitHub Desktop.
Save BenSlabbert/58e2e1a4436b06ceac351a6c6a81a305 to your computer and use it in GitHub Desktop.
aws-s3-cp
#!/bin/bash
# copy contents for dir recursively to s3 bucket specifying encryption key
aws s3 cp $PATH_TO_DIR s3://$BUCKET --recursive --profile $AWS_PROFILE --sse aws:kms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment