Skip to content

Instantly share code, notes, and snippets.

View johnraber's full-sized avatar

John Raber johnraber

  • https://workingbits.io
  • Longmont, CO
View GitHub Profile
@johnraber
johnraber / deploy.sh
Created January 12, 2020 19:46 — forked from rynop/deploy.sh
Deploy Angular static assets fronted by CloudFront
#!/bin/bash
if [[ "$1" != "" ]]; then
S3BUCKETNAME="$1"
else
echo ERROR: Failed to supply S3 bucket name
exit 1
fi
for old in dist/*.gz; do mv $old ${old%%.gz*}; done
@johnraber
johnraber / reinvent.md
Last active December 10, 2019 15:31 — forked from pfeilbr/reinvent.md
link for reinvent slides
@johnraber
johnraber / S3-Static-Sites.md
Created November 24, 2019 23:59 — forked from bradwestfall/S3-Static-Sites.md
Use S3 and CloudFront to host Static Single Page Apps (SPAs) with HTTPs and www-redirects. Also covers deployments.

S3 Static Sites

What this will cover

  • Host a static website at S3
  • Redirect www.website.com to website.com
  • Website can be an SPA (requiring all requests to return index.html)
  • Free AWS SSL certs
  • Deployment with CDN invalidation

Resources

kubectl multi-version brews

We need to run multiple versions of kubectl for compatibility with various clusters.

It's a bit easier to get and use multiple versions of kubectl using Homebrew than it is using Macports.

With brew, it's simple to:

  • Install a bunch of versions of kubectl (in the kubernetes-cli Formula)
  • Switch between them as needed