Skip to content

Instantly share code, notes, and snippets.

@quin2
Created October 17, 2019 16:12
Show Gist options
  • Select an option

  • Save quin2/08d9c325b0e97ccbece2e61ff56bf1ba to your computer and use it in GitHub Desktop.

Select an option

Save quin2/08d9c325b0e97ccbece2e61ff56bf1ba to your computer and use it in GitHub Desktop.
goes with deploy.sh
#!/bin/bash
if [ $# -ne 1 ]
then
echo "Usage: enter one argment for the static site/bucket name"
exit 0
fi
aws s3 sync --acl public-read --sse --delete . s3://$1
echo "$1.s3.amazonaws.com"
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment