# DEPLOYMENTS\_AWS\_EXTERNAL\_URI with CloudFront

**URL:** <https://hub.mender.io/t/deployments-aws-external-uri-with-cloudfront/7102>\
**Category:** General Discussions\
**Tags:** aws\
**Created:** [August 14, 2024, 3:52am UTC](https://hub.mender.io/t/deployments-aws-external-uri-with-cloudfront/7102 "2024-08-14T03:52:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xulong.z](https://avatars.discourse-cdn.com/v4/letter/x/5f9b8f/32.png) [@xulong.z](https://hub.mender.io/u/xulong.z)\
**Post date:** [August 14, 2024, 3:52am UTC](https://hub.mender.io/t/deployments-aws-external-uri-with-cloudfront/7102/1 "2024-08-14T03:52:41Z")

</div>

Hi,

I’d like the devices to access the artefacts via AWS CloudFront domain. I’ve configured mender-deployments service with the following environment variables:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/2X/3/3f5e9e72fae75536404a5737298630b796966b2b.png)

In the client devices, I got an error:  
dial tcp: lookup [coolon-mender-artifacts.d342gnwfeb7kek.cloudfront.net](http://coolon-mender-artifacts.d342gnwfeb7kek.cloudfront.net) on 8.8.8.8:53: no such host"

How to remove the “coolon-mender-artifacts” part from the CloudFront URL?

---

<div class="post-metadata">

**Author:** ![xulong.z](https://avatars.discourse-cdn.com/v4/letter/x/5f9b8f/32.png) [@xulong.z](https://hub.mender.io/u/xulong.z)\
**Post date:** [June 5, 2025, 5:33am UTC](https://hub.mender.io/t/deployments-aws-external-uri-with-cloudfront/7102/2 "2025-06-05T05:33:38Z")

</div>

Works in 3.7.11

---

<div class="post-metadata">

**Author:** ![alfrunes](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/alfrunes/32/703_2.png) [@alfrunes](https://hub.mender.io/u/alfrunes)\
**Post date:** [June 5, 2025, 6:35am UTC](https://hub.mender.io/t/deployments-aws-external-uri-with-cloudfront/7102/3 "2025-06-05T06:35:43Z")

</div>

I believe you need to set the `DEPLOYMENTS_AWS_FORCE_PATH_STYLE: true` so the bucket name ends up in the path and not the hostname.
