Costa Costa - 13 days ago 5
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

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

Comments