From 3f423c589ccc972c7e2b1d1d06192995afe12bd6 Mon Sep 17 00:00:00 2001 From: TheWanderingCrow Date: Sat, 8 Feb 2025 14:17:36 -0500 Subject: [PATCH] add another s3 bucket for attic binary cache --- infrastructure/wce.nix | 33 +++++++++++++++++++++------------ 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/infrastructure/wce.nix b/infrastructure/wce.nix index 64ebef6..8de2f13 100644 --- a/infrastructure/wce.nix +++ b/infrastructure/wce.nix @@ -22,18 +22,27 @@ profile = "wce"; }; - resource."aws_s3_bucket"."state" = { - bucket_prefix = "wce-"; - tags = { - Name = "WCE State Bucket"; + resource = { + "aws_s3_bucket"."state" = { + bucket_prefix = "wce-"; + tags = { + Name = "WCE State Bucket"; + }; + }; + + "aws_s3_bucket"."attic-cache" = { + bucket_prefix = "wce-"; + tags = { + Name = "WCE Attic Binary Cache"; + }; + }; + + "digitalocean_droplet"."do-wce-lighthouse1" = { + image = "177939596"; # nixos-digitalocean + name = "WCE-Lighthouse1"; + region = "nyc3"; + size = "s-1vcpu-1gb"; + ssh_keys = ["45378200"]; }; }; - - resource."digitalocean_droplet"."do-wce-lighthouse1" = { - image = "177939596"; # nixos-digitalocean - name = "WCE-Lighthouse1"; - region = "nyc3"; - size = "s-1vcpu-1gb"; - ssh_keys = ["45378200"]; - }; }