Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

Commit 687c21f

Browse files
authored
CloudFront: docs for custom distribution ID (#1795)
1 parent a5ca022 commit 687c21f

File tree

1 file changed

+7
-0
lines changed
  • content/en/user-guide/aws/cloudfront

1 file changed

+7
-0
lines changed

content/en/user-guide/aws/cloudfront/index.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,13 @@ Please note that a complete configuration would entail additional values relevan
9696
--distribution-config {...'Aliases':'{'Quantity':2, 'Items': ['custom.domain.one', 'customDomain.two']}'...}
9797
{{< / command >}}
9898

99+
## Custom IDs for CloudFront Distributions via tags
100+
101+
Each CloudFront distribution is created with a random unique identifier automatically assigned by AWS.
102+
Given that the distribution ID is part of the generated domain name, it can be useful to have the possibility to create distributions with a deterministic ID (e.g., to simplify testing or integration with other AWS services).
103+
104+
LocalStack offers this possibility by using the `_custom_id_` tag when creating a distribution with the [`CreateDistributionWithTags`](https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_CreateDistributionWithTags.html) operation.
105+
99106
## Resource Browser
100107

101108
The LocalStack Web Application provides a Resource Browser for CloudFront, which allows you to view and manage your CloudFront distributions.

0 commit comments

Comments
 (0)