Skip to content

Commit

Permalink
feat: cache ttl
Browse files Browse the repository at this point in the history
  • Loading branch information
xDarksome committed Apr 25, 2024
1 parent e901972 commit ffad5a5
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions cache-server/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,22 @@ resource "aws_s3_bucket_policy" "this" {
EOF
}


resource "aws_s3_bucket_lifecycle_configuration" "example" {
bucket = aws_s3_bucket.this.id

rule {
id = "main"

filter {}
expiration {
days = 7
}

status = "Enabled"
}
}

output "url" {
value = "${local.base_url}/${local.access_token}/"
}

0 comments on commit ffad5a5

Please sign in to comment.