From 44a4efe28a7dfd4831b0fe526c7e0a26fe44e5bf Mon Sep 17 00:00:00 2001 From: Giovanni Grano Date: Mon, 23 Jun 2025 16:20:50 +0200 Subject: [PATCH 1/3] document custom distributions id --- content/en/user-guide/aws/cloudfront/index.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/content/en/user-guide/aws/cloudfront/index.md b/content/en/user-guide/aws/cloudfront/index.md index 74adac0fb3..093dd01c03 100644 --- a/content/en/user-guide/aws/cloudfront/index.md +++ b/content/en/user-guide/aws/cloudfront/index.md @@ -96,6 +96,14 @@ Please note that a complete configuration would entail additional values relevan --distribution-config {...'Aliases':'{'Quantity':2, 'Items': ['custom.domain.one', 'customDomain.two']}'...} {{< / command >}} +## Custom IDs for CloudFront Distributions via tags + +Each CloudFront distribution is created with a random unique identifier automatically assigned by AWS. +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). + +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. + + ## Resource Browser The LocalStack Web Application provides a Resource Browser for CloudFront, which allows you to view and manage your CloudFront distributions. From 70a1e70449922a11366ba304478b59dec1516125 Mon Sep 17 00:00:00 2001 From: Giovanni Grano Date: Mon, 23 Jun 2025 16:23:02 +0200 Subject: [PATCH 2/3] lint --- content/en/user-guide/aws/cloudfront/index.md | 1 - 1 file changed, 1 deletion(-) diff --git a/content/en/user-guide/aws/cloudfront/index.md b/content/en/user-guide/aws/cloudfront/index.md index 093dd01c03..c4e43c152e 100644 --- a/content/en/user-guide/aws/cloudfront/index.md +++ b/content/en/user-guide/aws/cloudfront/index.md @@ -103,7 +103,6 @@ Given that the distribution ID is part of the generated domain name, it can be u 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. - ## Resource Browser The LocalStack Web Application provides a Resource Browser for CloudFront, which allows you to view and manage your CloudFront distributions. From 7b7becf58ea342f701b2f63b464e1714a0a3267c Mon Sep 17 00:00:00 2001 From: Giovanni Grano Date: Mon, 23 Jun 2025 16:25:59 +0200 Subject: [PATCH 3/3] typo --- content/en/user-guide/aws/cloudfront/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/user-guide/aws/cloudfront/index.md b/content/en/user-guide/aws/cloudfront/index.md index c4e43c152e..f78e273d38 100644 --- a/content/en/user-guide/aws/cloudfront/index.md +++ b/content/en/user-guide/aws/cloudfront/index.md @@ -101,7 +101,7 @@ Please note that a complete configuration would entail additional values relevan Each CloudFront distribution is created with a random unique identifier automatically assigned by AWS. 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). -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. +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. ## Resource Browser