{"id":6710,"date":"2022-06-30T22:53:18","date_gmt":"2022-06-30T13:53:18","guid":{"rendered":"https:\/\/the-world-star.com\/?p=6710"},"modified":"2026-11-21T11:49:34","modified_gmt":"2026-11-21T02:49:34","slug":"hosting-wordpress-media-with-amazon-s3-and-cloudfront","status":"publish","type":"post","link":"https:\/\/the-world-star.com\/en\/server\/hosting-wordpress-media-with-amazon-s3-and-cloudfront-6710\/","title":{"rendered":"Hosting WordPress Media with Amazon S3 and CloudFront"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Action Items<br>\u30fbCreate an S3 bucket to store and serve images -&gt; Cost-effective storage<br>\u30fbInstall and configure the WP Offload Media Lite plugin<br>\u30fbSet up CloudFront -&gt; Speed up delivery with caching<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I&#039;m following along with what I learned in my Udemy course, but I also found a helpful article covering the same topic that I&#039;ll reference here:<br><a href=\"https:\/\/qiita.com\/kono-hiroki\/items\/6cccf3e33cb7d844c6f7\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/qiita.com\/kono-hiroki\/items\/6cccf3e33cb7d844c6f7<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30fbStoring WordPress Images in S3<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">\u95b2\u89a7\u8005\u2192\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u2192EC2-wordpress \u2192S3\n                     \u2190\u2026\u6587\u5b57           \u2193\n                     \u2190\u2026\u2025\u2026 \u753b\u50cf\u2025\u2025\u2190\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Workflow Overview<br>-Create an S3 bucket<br>Set access to public, enable ACLs, give bucket owners full read\/write permissions, and grant read-only access to everyone else.<br>-Create an IAM account with programmatic access to S3<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Creating the S3 Bucket<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">I went to AWS S3, selected bucket creation, and walked through the wizard. I&#039;ve actually done this a few times before.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"715\" height=\"743\" src=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/Screenshot-from-2022-07-01-13-04-06-edit.png\" alt=\"\" class=\"wp-image-455\" srcset=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/01130928\/Screenshot-from-2022-07-01-13-04-06-edit.png 715w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/01130928\/Screenshot-from-2022-07-01-13-04-06-edit-289x300.png 289w\" sizes=\"auto, (max-width: 715px) 100vw, 715px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The bucket name needs to be globally unique. In my case, I joined my subdomain name parts with hyphens. I used my usual Tokyo region. I wasn&#039;t entirely sure about &#039;Object Ownership&#039;, but it turns out that when serving files through this S3 image setup, you need to enable and configure ACLs, otherwise uploads won&#039;t go through. Not being 100% sure, I started with ACLs disabled as a test, but as expected, WordPress couldn&#039;t write images to S3, so I came back and enabled ACLs later.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"655\" height=\"628\" src=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/Screenshot-from-2022-07-01-13-12-54-edit.png\" alt=\"\" class=\"wp-image-458\" srcset=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/01131425\/Screenshot-from-2022-07-01-13-12-54-edit.png 655w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/01131425\/Screenshot-from-2022-07-01-13-12-54-edit-300x288.png 300w\" sizes=\"auto, (max-width: 655px) 100vw, 655px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><br>Since we&#039;re serving content from here, I needed to make access as open as possible, so I unchecked &#039;Block all public access&#039;.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"645\" height=\"612\" src=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/Screenshot-from-2022-07-01-13-16-13.png\" alt=\"\" class=\"wp-image-460\" srcset=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/01131635\/Screenshot-from-2022-07-01-13-16-13.png 645w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/01131635\/Screenshot-from-2022-07-01-13-16-13-300x285.png 300w\" sizes=\"auto, (max-width: 645px) 100vw, 645px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">This prompted a warning checkbox below confirming the acknowledgment\u2014which I checked.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Stepping back a bit, I then configured the ACL settings.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"911\" height=\"727\" src=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/Screenshot-from-2022-07-01-13-18-14.png\" alt=\"\" class=\"wp-image-461\" srcset=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/01131957\/Screenshot-from-2022-07-01-13-18-14.png 911w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/01131957\/Screenshot-from-2022-07-01-13-18-14-300x239.png 300w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/01131957\/Screenshot-from-2022-07-01-13-18-14-768x613.png 768w\" sizes=\"auto, (max-width: 911px) 100vw, 911px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Under &#039;Edit object ownership&#039; in the S3 bucket, I selected &#039;ACLs enabled&#039;, checked the acknowledgment box below, left the object ownership on the default setting, and clicked &#039;Save changes&#039;. This enables granular control via ACLs.<br>The explanation for &#039;ACLs disabled (recommended)&#039; mentions it is &#039;owned by this account&#039;. Is this referring to the IAM account configured here? Since the IAM account used for programmatic S3 access is separate, would that cause it to fail?<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"584\" src=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/Screenshot-from-2022-07-01-13-31-01-edit-1024x584.png\" alt=\"\" class=\"wp-image-466\" srcset=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/01133535\/Screenshot-from-2022-07-01-13-31-01-edit-1024x584.png 1024w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/01133535\/Screenshot-from-2022-07-01-13-31-01-edit-300x171.png 300w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/01133535\/Screenshot-from-2022-07-01-13-31-01-edit-768x438.png 768w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/01133535\/Screenshot-from-2022-07-01-13-31-01-edit.png 1156w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">I configured this under the S3 Permissions tab, setting the bucket owner to &#039;Read\/Write&#039; and everyone else to &#039;Read&#039; only. I wasn&#039;t entirely sure how strict I needed to be, but following the tutorial (though this is touched on a bit later in the guide), these access settings successfully allowed WordPress to write to S3.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">-Creating an IAM Account for Programmatic S3 Access<\/h3>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"455\" src=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/Screenshot-from-2022-07-01-13-41-37-1024x455.png\" alt=\"\" class=\"wp-image-469\" srcset=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/01134405\/Screenshot-from-2022-07-01-13-41-37-1024x455.png 1024w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/01134405\/Screenshot-from-2022-07-01-13-41-37-300x133.png 300w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/01134405\/Screenshot-from-2022-07-01-13-41-37-768x341.png 768w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/01134405\/Screenshot-from-2022-07-01-13-41-37.png 1432w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Since I already had a programmatic S3 access user set up, I just reused that.<br>User: s3User | Policy: AmazonS3FullAccess<br><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"350\" src=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/Screenshot-from-2022-07-01-13-48-49-1024x350.png\" alt=\"\" class=\"wp-image-471\" srcset=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/01134915\/Screenshot-from-2022-07-01-13-48-49-1024x350.png 1024w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/01134915\/Screenshot-from-2022-07-01-13-48-49-300x102.png 300w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/01134915\/Screenshot-from-2022-07-01-13-48-49-768x262.png 768w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/01134915\/Screenshot-from-2022-07-01-13-48-49.png 1400w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The policy lived up to its name. Upon creation, you get:<strong>Access Key ID<\/strong>and<strong>Secret Access Key<\/strong>These are crucial. They get plugged into our program\u2014in this case, WP Offload Media Lite. They&#039;re also used when accessing S3 via the AWS CLI.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">-Installing the WP Offload Media Lite Plugin<\/h2>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"813\" height=\"386\" src=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/Screenshot-from-2022-07-01-13-54-33.png\" alt=\"\" class=\"wp-image-472\" srcset=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/01135544\/Screenshot-from-2022-07-01-13-54-33.png 813w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/01135544\/Screenshot-from-2022-07-01-13-54-33-300x142.png 300w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/01135544\/Screenshot-from-2022-07-01-13-54-33-768x365.png 768w\" sizes=\"auto, (max-width: 813px) 100vw, 813px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Search for the plugin within WordPress and install it. (It&#039;s &#039;offload&#039; as in offloading traffic, not &#039;off-road&#039; like a truck!).<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"657\" height=\"664\" src=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/Screenshot-from-2022-07-01-14-00-00.png\" alt=\"\" class=\"wp-image-474\" srcset=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/01140020\/Screenshot-from-2022-07-01-14-00-00.png 657w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/01140020\/Screenshot-from-2022-07-01-14-00-00-297x300.png 297w\" sizes=\"auto, (max-width: 657px) 100vw, 657px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Once installed, a prompt appeared asking me to configure wp-config.php. This is where you add the Access Key ID and Secret Access Key for the s3User we just created so WP Offload Media can access S3. I copied the code snippet, SSH&#039;d into my EC2 instance, and pasted it into the WordPress configuration file, wp-config.php.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"772\" height=\"466\" src=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/Screenshot-from-2022-07-01-14-02-11.png\" alt=\"\" class=\"wp-image-475\" srcset=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/01140235\/Screenshot-from-2022-07-01-14-02-11.png 772w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/01140235\/Screenshot-from-2022-07-01-14-02-11-300x181.png 300w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/01140235\/Screenshot-from-2022-07-01-14-02-11-768x464.png 768w\" sizes=\"auto, (max-width: 772px) 100vw, 772px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Just replace the `***` in `&#039;access-key-id&#039;=&gt; &#039;******&#039;` and `&#039;secret-access-key&#039;=&gt;&#039;******&#039;` with your actual s3User credentials.<br>Just in case, I restarted Apache2\u2014probably using `sudo systemctl restart apache2`.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"695\" height=\"582\" src=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/Screenshot-from-2022-07-01-14-10-11.png\" alt=\"\" class=\"wp-image-477\" srcset=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/01141032\/Screenshot-from-2022-07-01-14-10-11.png 695w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/01141032\/Screenshot-from-2022-07-01-14-10-11-300x251.png 300w\" sizes=\"auto, (max-width: 695px) 100vw, 695px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Refreshing the plugin page changed the status. It seemed to successfully detect my AWS S3 bucket and prompted me to make a selection.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"705\" height=\"673\" src=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/Screenshot-from-2022-07-01-14-08-58.png\" alt=\"\" class=\"wp-image-476\" srcset=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/01140906\/Screenshot-from-2022-07-01-14-08-58.png 705w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/01140906\/Screenshot-from-2022-07-01-14-08-58-300x286.png 300w\" sizes=\"auto, (max-width: 705px) 100vw, 705px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">With S3 now visible, additional configuration options appeared.<br>At this point, uploading an image to the Media Library still wasn&#039;t writing to S3 until I sorted out the ACL settings. You can instantly verify if uploads are working by checking the object list in your AWS S3 bucket.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/WEBLOGO\u5408\u6210\u7de8\u96c6-1024x610.jpg\" alt=\"\" class=\"wp-image-398\" width=\"513\" height=\"306\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">This is the image I used to test the upload. I right-clicked and selected &quot;Open image in new tab&quot; to check the URL. Eventually, the address automatically updated to my final subdomain, but at this stage, it was still pointing to the Amazon S3 domain.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Serving Images via CloudFront<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Next, we set up CloudFront.<br>The setup looks something like this: content is delivered from edge caching servers closer to the user, resulting in faster loading times and reduced load on S3.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\u95b2\u89a7\u8005\u2192\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u2192EC2-wordpress \u2192S3\n                      \u2190\u2026\u6587\u5b57           \u2193\n              \u2190\u2026CloudFront\u2025\u2026 \u753b\u50cf\u2025\u2025\u2190\n\n<\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/Screenshot-from-2022-07-01-14-21-41-1024x693.png\" alt=\"\" class=\"wp-image-480\" width=\"752\" height=\"509\" srcset=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/01142223\/Screenshot-from-2022-07-01-14-21-41-1024x693.png 1024w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/01142223\/Screenshot-from-2022-07-01-14-21-41-300x203.png 300w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/01142223\/Screenshot-from-2022-07-01-14-21-41-768x520.png 768w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/01142223\/Screenshot-from-2022-07-01-14-21-41.png 1058w\" sizes=\"auto, (max-width: 752px) 100vw, 752px\" \/><\/figure>\n\n\n\n<pre id=\"block-c555a96c-9a27-4cbe-879f-26259392c5ca\" class=\"wp-block-preformatted\">CloudFront\u306e\u3068\u3053\u308d\u3067\u300c\u30c7\u30a3\u30b9\u30c8\u30ec\u30a4\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3059\u308b\u300d\u3068\u3057\u307e\u3059\u3002CNAME\u306b\u81ea\u5206\u306e\u30c9\u30e1\u30a4\u30f3\u304b\u3089\u914d\u4fe1\u3055\u308c\u308b\u3088\u3046\u306b\u30b5\u30d6\u30c9\u30e1\u30a4\u30f3\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002\u4f55\u3084\u3089\u3053\u308c\u3092\u3084\u308b\u306e\u306fSLL\u5316\u3057\u3066\u306a\u3044\u3068\u30c0\u30e1\u3060\u305d\u3046\u3067\u3001\u3067\u3082\u3053\u3053\u304b\u3089\u7c21\u5358\u306b\u3067\u304d\u307e\u3059\u3002\u4e0b\u306e\u300c\u8a3c\u660e\u66f8\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u300d\u3092\u3059\u308c\u3070\u30c8\u30f3\u30c8\u30f3\u3068\u9032\u307f\u307e\u3059\u3002\n\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">-In Route53, define an A record (alias) mapping `static.the-world-star.com` to the CloudFront distribution domain.<br>-Configure WP Offload Media Lite<br>Instead of serving files from the Amazon S3 domain or the CloudFront domain, we want them served from our custom subdomain: `static.the-world-star.com`. To achieve this...<br>Go to settings (was it Delivery?). Click where it says S3 and change it to CloudFront, which will reveal the Alternate Domain (CNAME) settings field. Enter `static.the-world-star.com` right there.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/Screenshot-from-2022-07-01-12-26-55-1024x576.png\" alt=\"\" class=\"wp-image-482\" srcset=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/01164408\/Screenshot-from-2022-07-01-12-26-55-1024x576.png 1024w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/01164408\/Screenshot-from-2022-07-01-12-26-55-300x169.png 300w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/01164408\/Screenshot-from-2022-07-01-12-26-55-768x432.png 768w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/01164408\/Screenshot-from-2022-07-01-12-26-55-1536x864.png 1536w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/01164408\/Screenshot-from-2022-07-01-12-26-55-320x180.png 320w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/01164408\/Screenshot-from-2022-07-01-12-26-55.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Checking S3...<s>All image files were already uploaded to S3. It looks like the final setup step of WP Offload Media automatically copied existing images over.<\/s>-&gt; Correction: Old files weren&#039;t actually uploaded. Checking the EC2 server, the legacy files were still sitting there. Does the &quot;remove files&quot; option only apply to newly uploaded items?<br>Looking at older posts, links to images were still pointing to the old paths (without &#039;static&#039;). At this point, I either need to manually update old posts to include &#039;static&#039; in the URLs, or perhaps CloudFront can rewrite old image URLs to use &#039;static&#039; so they fetch from S3 properly. -&gt; Looks like I&#039;ll need to upload the old images as well.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Action Items\u30fbCreate an S3 bucket to store and serve images -&gt; Cost-effective storage\u30fbInstall and configure the WP Offload Media Lite plugin\u30fbSet up CloudFront -&gt; Speed up delivery with caching I&#039;m following along with what I learned in my Udemy course, but I also found a helpful article covering the same topic that I&#039;ll reference here:https:\/\/qiita.com\/kono-hiroki\/items\/6cccf3e33cb7d844c6f7 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":455,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"en_US","_original_post":"https:\/\/175.41.248.22\/?p=387","_lightning_design_setting":{"layout":"default"},"footnotes":""},"categories":[3],"tags":[1254,67,68,70,119,120,1150],"class_list":["post-6710","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-infrastructure","tag-server","tag-wordpress","tag-aws","tag-s3","tag-cloudfront","tag-web-server","en-US"],"_links":{"self":[{"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/posts\/6710","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/comments?post=6710"}],"version-history":[{"count":1,"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/posts\/6710\/revisions"}],"predecessor-version":[{"id":6711,"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/posts\/6710\/revisions\/6711"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/media\/455"}],"wp:attachment":[{"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/media?parent=6710"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/categories?post=6710"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/tags?post=6710"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}