vsupalov

Uploading a static website to your s3 bucket from the terminal without clicking around.

31.7.2015 by Vladislav Supalov

For the following, you will need to has the AWS Command Line Interface installeded and configured. Let’s assume you have a website (html, css, js files and folders) which is called website. You want it to go into an s3 bucket called mybucket-website which resides on in Frankfurt (eu-central-1). The following command will upload the content, delete unnecessary files (which are not in your local folder) and do so quickly.

$ aws s3 sync website s3://mybucket-website --region eu-central-1 --delete --acl public-read

No more unnecessary navigation and uploading via the tedious AWS console. You can find the complete documentation of the sync command here

Join the mailing list!


Subscribe to get notified about future articles and stay in touch via email.

I write about Kubernetes, Docker, automation- and deployment topics, but would also like to keep you up to date about news around the business-side of things.

Privacy and your data: You can get more information about the usage of your data, the storage of your registration, sending out mails with the US-provider ConvertKit, statistical analysis of emails sent and your possibility to unsubscribe in my Privacy Policy.

I use the US-provider ConvertKit for email automation. By clicking to submit this form, you acknowledge that the information you provide will be transferred to ConvertKit for processing in accordance with their Privacy Policy and Terms.

We won't send you spam. Unsubscribe at any time. Powered by ConvertKit