{"id":11885,"date":"2014-02-25T11:41:52","date_gmt":"2014-02-25T06:11:52","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=11885"},"modified":"2014-02-25T14:18:04","modified_gmt":"2014-02-25T08:48:04","slug":"automating-deployment-of-a-static-website-hosted-on-amazon-s3","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/automating-deployment-of-a-static-website-hosted-on-amazon-s3\/","title":{"rendered":"Automating deployment of a static website hosted on Amazon S3"},"content":{"rendered":"<p style=\"text-align: left\">Most of us know how to host a static website on Amazon S3, but to deploy the website you would need to run the AWS Cli command everytime manually.<\/p>\n<p style=\"text-align: left\">In this blog I&#8217;ll show you how to automatically deploy your website while maintaining version control of your project using server side hook provided by Git.<\/p>\n<p style=\"text-align: left\"><strong>Prerequisite :<\/strong><\/p>\n<ul style=\"text-align: left\">\n<li>Git<\/li>\n<li>Aws Cli tool<\/li>\n<\/ul>\n<p style=\"text-align: left\"><strong>Initializing a Git repository on your existing Project :<\/strong><\/p>\n<p style=\"text-align: left\">If you already have a git repository for your project then you may skip this step , else initialize a git repo on your project :<\/p>\n<p>[shell]<br \/>\ncd \/opt\/testweb<br \/>\ngit init .<br \/>\n[\/shell]<\/p>\n<p style=\"text-align: left\"><strong>Creating\u00a0 a hook to automatically upload the website<\/strong><\/p>\n<p style=\"text-align: left\">Here we&#8217;ll write a \u201cpost-receive\u201d hook , which executes itself on the remote repository after all the refs have been updated. Hooks are located in the .git directory of your project under the hooks folder (<strong>.git\/hooks<\/strong>).<\/p>\n<p style=\"text-align: left\">Our post-receive hook looks somewhat like this :<\/p>\n<p>[shell]<br \/>\n# post-receive hook to upload to s3 bucket<br \/>\n#!\/bin\/bash<br \/>\nset -e<br \/>\nPROJ_DIR=$(dirname $PWD)<br \/>\nunset GIT_DIR<br \/>\ncd $PROJ_DIR<br \/>\n# Specify here , the branch whose code should be pushed to the bucket<br \/>\ngit checkout prod<br \/>\n# aws cli command to sync the code<br \/>\naws s3 sync $PROJ_DIR s3:\/\/my-first-website &#8211;delete &#8211;exclude &quot;.git\/*&quot;<br \/>\ngit checkout master<br \/>\n[\/shell]<\/p>\n<p style=\"text-align: left\">Few points to note here :<\/p>\n<ul style=\"text-align: left\">\n<li>You need to specify the branch here whose code should be pushed to the bucket.<\/li>\n<li>I am using sync command , so that update and delete happens accordingly to your working directory.<\/li>\n<li>and the .git directory is excluded<\/li>\n<li>Don&#8217;t forget to give executable permission to your hook.<\/li>\n<\/ul>\n<p style=\"text-align: left\"><strong>Let&#8217;s Test it out !!!<\/strong><\/p>\n<p style=\"text-align: left\">For this blog, I have a simple html page as soon below hosted on my S3 bucket, which I&#8217;ll later update with a template :<\/p>\n<p style=\"text-align: left\"><a href=\"\/blog\/wp-ttn-blog\/uploads\/2014\/02\/ComingSoon.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-11964\" src=\"\/blog\/wp-ttn-blog\/uploads\/2014\/02\/ComingSoon.png\" alt=\"html_page\" width=\"819\" height=\"244\" \/><\/a><\/p>\n<p style=\"text-align: left\">Let&#8217;s clone the project into some other directory .<\/p>\n<p>[shell]git clone file:\/\/\/opt\/testweb mywebsite[\/shell]<\/p>\n<p style=\"text-align: left\">After adding and committing new code files in the repo , Let&#8217;s push the changes to the \u201c prod \u201c branch of the server :<\/p>\n<p>[shell]git push origin master:prod[\/shell]<\/p>\n<p style=\"text-align: left\">with this our hook will also get executed and on the terminal you would notice that the hook is uploading your files on your bucket :<\/p>\n<p style=\"text-align: left\"><a href=\"\/blog\/wp-ttn-blog\/uploads\/2014\/02\/prod.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/wp-ttn-blog\/uploads\/2014\/02\/prod.png\" alt=\"Blog image\" width=\"440\" height=\"355\" \/><\/a><\/p>\n<p style=\"text-align: left\">Now Lets check the index.html page on our S3 bucket :<\/p>\n<p style=\"text-align: left\"><a href=\"\/blog\/wp-ttn-blog\/uploads\/2014\/02\/after.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/wp-ttn-blog\/uploads\/2014\/02\/after.png\" alt=\"Blog image\" width=\"491\" height=\"257\" \/><\/a><\/p>\n<p style=\"text-align: left\">And here it is , so from now onward all you need is a simple PUSH \ud83d\ude42<\/p>\n<p style=\"text-align: left\">PS: This was a simple use of a git hook , you can hack it your way to do much more stuff.<\/p>\n<p style=\"text-align: left\">\n","protected":false},"excerpt":{"rendered":"<p>Most of us know how to host a static website on Amazon S3, but to deploy the website you would need to run the AWS Cli command everytime manually. In this blog I&#8217;ll show you how to automatically deploy your website while maintaining version control of your project using server side hook provided by Git. [&hellip;]<\/p>\n","protected":false},"author":108,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":14,"footnotes":""},"categories":[1174],"tags":[248,1332,375,1335],"class_list":["post-11885","post","type-post","status-publish","format-standard","hentry","category-aws-2","tag-aws","tag-aws-s3","tag-git","tag-git-hooks"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Most of us know how to host a static website on Amazon S3, but to deploy the website you would need to run the AWS Cli command everytime manually. In this blog I&#039;ll show you how to automatically deploy your website while maintaining version control of your project using server side hook provided by Git.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"ravi\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.tothenew.com\/blog\/automating-deployment-of-a-static-website-hosted-on-amazon-s3\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"blog\" \/>\n\t\t<meta property=\"og:title\" content=\"Automating deployment of a static website hosted on Amazon S3 | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"Most of us know how to host a static website on Amazon S3, but to deploy the website you would need to run the AWS Cli command everytime manually. In this blog I&#039;ll show you how to automatically deploy your website while maintaining version control of your project using server side hook provided by Git.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.tothenew.com\/blog\/automating-deployment-of-a-static-website-hosted-on-amazon-s3\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Automating deployment of a static website hosted on Amazon S3 | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Most of us know how to host a static website on Amazon S3, but to deploy the website you would need to run the AWS Cli command everytime manually. In this blog I&#039;ll show you how to automatically deploy your website while maintaining version control of your project using server side hook provided by Git.\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/automating-deployment-of-a-static-website-hosted-on-amazon-s3\\\/#article\",\"name\":\"Automating deployment of a static website hosted on Amazon S3 | TO THE NEW Blog\",\"headline\":\"Automating deployment of a static website hosted on Amazon S3\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/ravi\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"\\\/blog\\\/wp-ttn-blog\\\/uploads\\\/2014\\\/02\\\/ComingSoon.png\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/automating-deployment-of-a-static-website-hosted-on-amazon-s3\\\/#articleImage\"},\"datePublished\":\"2014-02-25T11:41:52+05:30\",\"dateModified\":\"2014-02-25T14:18:04+05:30\",\"inLanguage\":\"en-US\",\"commentCount\":2,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/automating-deployment-of-a-static-website-hosted-on-amazon-s3\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/automating-deployment-of-a-static-website-hosted-on-amazon-s3\\\/#webpage\"},\"articleSection\":\"AWS, aws, aws s3, git, git hooks\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/automating-deployment-of-a-static-website-hosted-on-amazon-s3\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/aws-2\\\/#listItem\",\"name\":\"AWS\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/aws-2\\\/#listItem\",\"position\":2,\"name\":\"AWS\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/aws-2\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/automating-deployment-of-a-static-website-hosted-on-amazon-s3\\\/#listItem\",\"name\":\"Automating deployment of a static website hosted on Amazon S3\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/automating-deployment-of-a-static-website-hosted-on-amazon-s3\\\/#listItem\",\"position\":3,\"name\":\"Automating deployment of a static website hosted on Amazon S3\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/aws-2\\\/#listItem\",\"name\":\"AWS\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/ravi\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/ravi\\\/\",\"name\":\"ravi\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/automating-deployment-of-a-static-website-hosted-on-amazon-s3\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d719391371553cf4bfeb541fbb6426fc7ea3854dc9dcaac4da53e4fa1c589fd7?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"ravi\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/automating-deployment-of-a-static-website-hosted-on-amazon-s3\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/automating-deployment-of-a-static-website-hosted-on-amazon-s3\\\/\",\"name\":\"Automating deployment of a static website hosted on Amazon S3 | TO THE NEW Blog\",\"description\":\"Most of us know how to host a static website on Amazon S3, but to deploy the website you would need to run the AWS Cli command everytime manually. In this blog I'll show you how to automatically deploy your website while maintaining version control of your project using server side hook provided by Git.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/automating-deployment-of-a-static-website-hosted-on-amazon-s3\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/ravi\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/ravi\\\/#author\"},\"datePublished\":\"2014-02-25T11:41:52+05:30\",\"dateModified\":\"2014-02-25T14:18:04+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Automating deployment of a static website hosted on Amazon S3 | TO THE NEW Blog","description":"Most of us know how to host a static website on Amazon S3, but to deploy the website you would need to run the AWS Cli command everytime manually. In this blog I'll show you how to automatically deploy your website while maintaining version control of your project using server side hook provided by Git.","canonical_url":"https:\/\/www.tothenew.com\/blog\/automating-deployment-of-a-static-website-hosted-on-amazon-s3\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.tothenew.com\/blog\/automating-deployment-of-a-static-website-hosted-on-amazon-s3\/#article","name":"Automating deployment of a static website hosted on Amazon S3 | TO THE NEW Blog","headline":"Automating deployment of a static website hosted on Amazon S3","author":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/ravi\/#author"},"publisher":{"@id":"https:\/\/www.tothenew.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"\/blog\/wp-ttn-blog\/uploads\/2014\/02\/ComingSoon.png","@id":"https:\/\/www.tothenew.com\/blog\/automating-deployment-of-a-static-website-hosted-on-amazon-s3\/#articleImage"},"datePublished":"2014-02-25T11:41:52+05:30","dateModified":"2014-02-25T14:18:04+05:30","inLanguage":"en-US","commentCount":2,"mainEntityOfPage":{"@id":"https:\/\/www.tothenew.com\/blog\/automating-deployment-of-a-static-website-hosted-on-amazon-s3\/#webpage"},"isPartOf":{"@id":"https:\/\/www.tothenew.com\/blog\/automating-deployment-of-a-static-website-hosted-on-amazon-s3\/#webpage"},"articleSection":"AWS, aws, aws s3, git, git hooks"},{"@type":"BreadcrumbList","@id":"https:\/\/www.tothenew.com\/blog\/automating-deployment-of-a-static-website-hosted-on-amazon-s3\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.tothenew.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/category\/aws-2\/#listItem","name":"AWS"}},{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/category\/aws-2\/#listItem","position":2,"name":"AWS","item":"https:\/\/www.tothenew.com\/blog\/category\/aws-2\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/automating-deployment-of-a-static-website-hosted-on-amazon-s3\/#listItem","name":"Automating deployment of a static website hosted on Amazon S3"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/automating-deployment-of-a-static-website-hosted-on-amazon-s3\/#listItem","position":3,"name":"Automating deployment of a static website hosted on Amazon S3","previousItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/category\/aws-2\/#listItem","name":"AWS"}}]},{"@type":"Organization","@id":"https:\/\/www.tothenew.com\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/www.tothenew.com\/blog\/"},{"@type":"Person","@id":"https:\/\/www.tothenew.com\/blog\/author\/ravi\/#author","url":"https:\/\/www.tothenew.com\/blog\/author\/ravi\/","name":"ravi","image":{"@type":"ImageObject","@id":"https:\/\/www.tothenew.com\/blog\/automating-deployment-of-a-static-website-hosted-on-amazon-s3\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/d719391371553cf4bfeb541fbb6426fc7ea3854dc9dcaac4da53e4fa1c589fd7?s=96&d=mm&r=g","width":96,"height":96,"caption":"ravi"}},{"@type":"WebPage","@id":"https:\/\/www.tothenew.com\/blog\/automating-deployment-of-a-static-website-hosted-on-amazon-s3\/#webpage","url":"https:\/\/www.tothenew.com\/blog\/automating-deployment-of-a-static-website-hosted-on-amazon-s3\/","name":"Automating deployment of a static website hosted on Amazon S3 | TO THE NEW Blog","description":"Most of us know how to host a static website on Amazon S3, but to deploy the website you would need to run the AWS Cli command everytime manually. In this blog I'll show you how to automatically deploy your website while maintaining version control of your project using server side hook provided by Git.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.tothenew.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.tothenew.com\/blog\/automating-deployment-of-a-static-website-hosted-on-amazon-s3\/#breadcrumblist"},"author":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/ravi\/#author"},"creator":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/ravi\/#author"},"datePublished":"2014-02-25T11:41:52+05:30","dateModified":"2014-02-25T14:18:04+05:30"},{"@type":"WebSite","@id":"https:\/\/www.tothenew.com\/blog\/#website","url":"https:\/\/www.tothenew.com\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.tothenew.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"Automating deployment of a static website hosted on Amazon S3 | TO THE NEW Blog","og:description":"Most of us know how to host a static website on Amazon S3, but to deploy the website you would need to run the AWS Cli command everytime manually. In this blog I'll show you how to automatically deploy your website while maintaining version control of your project using server side hook provided by Git.","og:url":"https:\/\/www.tothenew.com\/blog\/automating-deployment-of-a-static-website-hosted-on-amazon-s3\/","og:image":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"Automating deployment of a static website hosted on Amazon S3 | TO THE NEW Blog","twitter:description":"Most of us know how to host a static website on Amazon S3, but to deploy the website you would need to run the AWS Cli command everytime manually. In this blog I'll show you how to automatically deploy your website while maintaining version control of your project using server side hook provided by Git.","twitter:image":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"11885","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-04-30 08:05:11","updated":"2024-02-29 08:57:51","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.tothenew.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.tothenew.com\/blog\/category\/aws-2\/\" title=\"AWS\">AWS<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tAutomating deployment of a static website hosted on Amazon S3\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.tothenew.com\/blog"},{"label":"AWS","link":"https:\/\/www.tothenew.com\/blog\/category\/aws-2\/"},{"label":"Automating deployment of a static website hosted on Amazon S3","link":"https:\/\/www.tothenew.com\/blog\/automating-deployment-of-a-static-website-hosted-on-amazon-s3\/"}],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/11885","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/108"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=11885"}],"version-history":[{"count":0,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/11885\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=11885"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=11885"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=11885"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}