Skip to content

Commit 6a623d3

Browse files
authored
Merge pull request #802 from rust-lang/release-distribution-lower-cloudfront-weight
release-distribution: lower cloudfront weight
2 parents b0a9e28 + 4821554 commit 6a623d3

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
f0d18844756ee5a91c113057898b5e122311e2bf
1+
e1a55fdd4fd065e9bbba0ae7130d15c628b5b96f

terragrunt/accounts/legacy/releases-prod/release-distribution/terragrunt.hcl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ inputs = {
1818

1919
static_ttl = 86400 // 1 day
2020

21-
static_cloudfront_weight = 5
22-
static_fastly_weight = 95
21+
# minimum weight AWS allows.
22+
static_cloudfront_weight = 1
23+
# maximum weight AWS allows
24+
static_fastly_weight = 255
25+
# Percentage of traffic going through Fastly: 255/(255+1)*100 = 99.6%
2326
}

terragrunt/modules/release-distribution/cloudfront-static.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ resource "aws_cloudfront_distribution" "static" {
9191
bucket = data.aws_s3_bucket.logs.bucket_regional_domain_name
9292
prefix = "cloudfront/${var.static_domain_name}"
9393
}
94+
95+
tags = {
96+
project = "release-distribution"
97+
environment = var.environment
98+
}
9499
}
95100

96101
resource "aws_route53_record" "cloudfront_static_domain" {

0 commit comments

Comments
 (0)