Costa Costa - 1 year ago 69
Git Question

How to update my static AWS S3 website

I've got a static site up on S3. If I make a change to the code, and want to push an update, can I do that with git? Or can I do that with one command on the S3 cli?

Can't find this in the AWS docs.

Answer Source

Git won't do this but you could possibly setup a commit hook to run the AWS CLI command. The command you are looking for is aws s3 sync

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download