Skip to content

Commit

Permalink
infra: scale up
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiio committed Jun 8, 2024
1 parent de8c604 commit eb5766f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions terraform/cloudfront.tf
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ resource "aws_cloudfront_distribution" "main" {

resource "aws_cloudfront_cache_policy" "default" {
name = "${local.namespace}-cache-policy"
min_ttl = 60 # 1 minute
default_ttl = 300 # 5 minutes
max_ttl = 600 # 10 minutes
min_ttl = 60 # 1 minute
default_ttl = 60 # 1 minute
max_ttl = 60 # 1 minute

parameters_in_cache_key_and_forwarded_to_origin {
enable_accept_encoding_brotli = true
Expand Down
2 changes: 1 addition & 1 deletion terraform/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ locals {

db = {
name = "rezultatevot"
instance_class = var.env == "production" ? "db.t4g.small" : "db.t4g.micro"
instance_class = var.env == "production" ? "db.t4g.large" : "db.t4g.micro"
}

networking = {
Expand Down

0 comments on commit eb5766f

Please sign in to comment.