Skip to content

Commit

Permalink
Give rate limters unique names
Browse files Browse the repository at this point in the history
Helps to distigush between them in the UI.
  • Loading branch information
theseanything committed Jul 12, 2024
1 parent 153e0c4 commit 0d8a845
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modules/assets/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ resource "fastly_service_vcl" "service" {
}

rate_limiter {
name = "rate_limiter"
name = "rate_limiter_assets_${local.template_values["environment"]}"

rps_limit = 500
window_size = 10
Expand Down
2 changes: 1 addition & 1 deletion modules/bouncer/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ resource "fastly_service_vcl" "service" {
}

rate_limiter {
name = "rate_limiter"
name = "rate_limiter_bouncer_${local.template_values["environment"]}"

rps_limit = 500
window_size = 10
Expand Down
2 changes: 1 addition & 1 deletion modules/datagovuk/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ resource "fastly_service_vcl" "service" {
}

rate_limiter {
name = "rate_limiter"
name = "rate_limiter_dgu_${local.template_values["environment"]}"

rps_limit = 500
window_size = 10
Expand Down
2 changes: 1 addition & 1 deletion modules/www/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ resource "fastly_service_vcl" "service" {
}

rate_limiter {
name = "rate_limiter"
name = "rate_limiter_www_${local.template_values["environment"]}"

rps_limit = 500
window_size = 10
Expand Down

0 comments on commit 0d8a845

Please sign in to comment.