# Install Discourse on Amazon Web Services (AWS) with Lightsail, SES, and Route 53

**URL:** https://meta.discourse.org/t/install-discourse-on-amazon-web-services-aws-with-lightsail-ses-and-route-53/239343
**Category:** Sysadmins
**Tags:** how-to, install
**Created:** [September 18, 2022, 5:16pm UTC](https://meta.discourse.org/t/install-discourse-on-amazon-web-services-aws-with-lightsail-ses-and-route-53/239343 "2022-09-18T17:16:55Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![wal](https://avatars.discourse-cdn.com/v4/letter/w/d6d6ee/32.png) [@wal](https://meta.discourse.org/u/wal)
#### Post date: [August 7, 2024, 3:41pm UTC](https://meta.discourse.org/t/install-discourse-on-amazon-web-services-aws-with-lightsail-ses-and-route-53/239343/5 "2024-08-07T15:41:41Z")

</div>

as a follow up, perhaps we could expand this post to include setup for AWS Cloudfront CDN? Since it fits well with the rest of the AWS stack described here. I got it running by following the advice from this post

> [@How to setup cloudfront for discourse](https://meta.discourse.org/t/how-to-setup-cloudfront-for-discourse/129252/6):
>
> @Magnetidog I just got it to work. I basically created the AWS Cloudfront distribution as explained in [this video](https://www.youtube.com/watch?v=KIltfPRpTi4). Then, I went to the admin panel and added my Cloudfront URL to the s3 cdn url key. Then, I entered the container and rebaked all posts with rake posts:rebake (it took me around 10 min for every 7000 posts). I also tried doing it in batches in the Rails Console, but for some reason this didn’t work: Post.in\_batches.update\_all('baked\_version = NULL') (nothing happened :person\_shru…

but a more thorough guide would be great to include

---

_[View the full topic](https://meta.discourse.org/t/install-discourse-on-amazon-web-services-aws-with-lightsail-ses-and-route-53/239343)._
