Skip to content

Commit 44a4efe

Browse files
committed
document custom distributions id
1 parent d22e6d5 commit 44a4efe

File tree

1 file changed

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

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,14 @@ 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+
106+
99107
## Resource Browser
100108

101109
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)