@cryptotaxi247 / infra-1 / commits / 63e23cb5

terraform: import the cache/nix-cache-info file

zimbatm committed Aug 30, 2021 at 13:20 UTC 63e23cb5c9b4a3613d53f5b9cc05790bc5c799c0
2 files changed +14
terraform/cache.tf
+11
@@ -19,6 +19,17 @@ resource "aws_s3_bucket" "cache" {
19 }
20 }
21
22 +resource "aws_s3_bucket_object" "cache-nix-cache-info" {
23 + provider = aws.us
24 +
25 + acl = "public-read"
26 + bucket = aws_s3_bucket.cache.bucket
27 + content_type = "application/octet-stream"
28 + etag = filemd5("${path.module}/cache/nix-cache-info")
29 + key = "nix-cache-info"
30 + source = "${path.module}/cache/nix-cache-info"
31 +}
32 +
33 resource "aws_s3_bucket_policy" "cache" {
34 provider = aws.us
35 bucket = aws_s3_bucket.cache.id
terraform/cache/nix-cache-info new
+3
@@ -0,0 +1,3 @@
1 +StoreDir: /nix/store
2 +WantMassQuery: 1
3 +Priority: 40