add the old snippet md files

This commit is contained in:
Travis Shears 2025-06-05 16:20:57 +02:00
parent fc0dd204c7
commit bcf8313a4b
110 changed files with 3048 additions and 0 deletions

View file

@ -0,0 +1,16 @@
---
title: "aws s3 sync"
date: 2020-01-11T04:43:43+01:00
draft: false
snippet_types: ["aws", "s3"]
---
```shell
$ aws s3 sync --acl public-read --sse AES256 build/ s3://travisshears.com
```
Having the ability to send a site live with a single command is heaven and not a BASH script with a bunch of moving parts liable to break. This command takes me back to the old days when putting a site live meant an FTP upload command to a server letting Apache take care of the rest. This site, for example, is hosted in an AWS S3 bucket that is connected to AWS CloudFront.
inspiration:
[lustforge](https://lustforge.com/2016/02/27/hosting-hugo-on-aws/) - great blog post