Skip to content

Commit a390c87

Browse files
committed
add cloudfront custom distribution id
1 parent da2cfa8 commit a390c87

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/content/docs/aws/services/cloudfront.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,13 @@ Please note that a complete configuration would entail additional values relevan
9999
--distribution-config {...'Aliases':'{'Quantity':2, 'Items': ['custom.domain.one', 'customDomain.two']}'...}
100100
```
101101

102+
## Custom IDs for CloudFront Distributions via tags
103+
104+
Each CloudFront distribution is created with a random unique identifier automatically assigned by AWS.
105+
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).
106+
107+
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.
108+
102109
## Resource Browser
103110

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