# Creating a CloudFront Distribution

**URL:** <https://discourse.nodered.org/t/creating-a-cloudfront-distribution/15067>\
**Category:** General\
**Created:** [3 September 2019 16:08 UTC](https://discourse.nodered.org/t/creating-a-cloudfront-distribution/15067 "2019-09-03T16:08:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeremyd](https://avatars.discourse-cdn.com/v4/letter/j/6de8d8/32.png) [@jeremyd](https://discourse.nodered.org/u/jeremyd)\
**Post date:** [3 September 2019 16:08 UTC](https://discourse.nodered.org/t/creating-a-cloudfront-distribution/15067/1 "2019-09-03T16:08:56Z")

</div>

Hello, I am wanting to use an AWS CloudFront Distribution as a front to my EC2 instance so I can use the CloudFront SSL to secure API calls. When I create the distribution to my EC2 instance using port 1880 for HTTP and HTTPS I get a shell of the NodeRed dashboard, but there are failures which result in the labels and palate not loading. Instead I see things like "label.password".

The failures I see in the browser console show 400 errors while going out to the CloudFront URL to get the labels. The specific error is calling a length function on undefined.

Has anyone implemented NodeRed in EC2 with a CloudFront distribution successfully?

Thank you.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [3 September 2019 17:04 UTC](https://discourse.nodered.org/t/creating-a-cloudfront-distribution/15067/2 "2019-09-03T17:04:53Z")

</div>

I suspect this is 99% an Amazon question and 1% Node-RED 🙂
