16 lines
668 B
Markdown
16 lines
668 B
Markdown
---
|
|
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
|
|
|