Skip to content

Instantly share code, notes, and snippets.

@sachinsmc
Last active August 6, 2017 07:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sachinsmc/f2a240a6ed9ea6b620a2e5c3612852c7 to your computer and use it in GitHub Desktop.
Save sachinsmc/f2a240a6ed9ea6b620a2e5c3612852c7 to your computer and use it in GitHub Desktop.
#!/bin/bash
#script for creating zip file
echo "create a zip and cp to s3 "
DATE="`date '+%Y%m%d%H%M%S'`.zip"
zip -e $DATE ../logs
aws s3 cp ../logs https://s3-external-1.amazonaws.com/cf-templates-............w.templatek.....
echo "Zip files created and copied to s3 bucket."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment