Skip to content

Instantly share code, notes, and snippets.

View victoremmanuel's full-sized avatar

Victor Emmanuel victoremmanuel

View GitHub Profile
@victoremmanuel
victoremmanuel / s3Sync.sh
Created April 10, 2018 05:11 — forked from kellyrmilligan/s3Sync.sh
Sync files to s3 and set cache control headers
#!/bin/bash
if [[ "$1" != "" ]]; then
S3BUCKETNAME="$1"
else
echo ERROR: Failed to supply S3 bucket name
exit 1
fi
aws s3 sync build s3://$S3BUCKETNAME --delete --cache-control max-age=31536000,public
@victoremmanuel
victoremmanuel / cloudformation.json
Created March 28, 2018 09:57 — forked from nickpad/cloudformation.json
Example cloudformation template for auto scaling deploys
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "Auto scaling deploy example",
"Parameters": {
"AvailabilityZone": {
"Type": "String",
"Default": "us-west-1a"
},
"ImageId": {
"Type": "String"