CrOS/infrastructure/wce.nix
2025-04-04 11:13:59 -04:00

56 lines
1.2 KiB
Nix

{...}: {
terraform = {
required_providers = {
digitalocean = {
source = "digitalocean/digitalocean";
version = "2.48.2";
};
aws = {
source = "hashicorp/aws";
version = "5.86.0";
};
b2 = {
source = "Backblaze/b2";
version = "0.10.0";
};
};
backend."s3" = {
bucket = "wce-20250207201121178400000001";
key = "terraform.tfstate";
region = "us-east-1";
};
};
provider."aws" = {
region = "us-east-1";
profile = "wce";
};
resource = {
"aws_s3_bucket"."state" = {
bucket_prefix = "wce-";
tags = {
Name = "WCE State Bucket";
};
};
"b2_bucket"."media" = {
bucket_name = "wce-media-backup";
bucket_type = "allPrivate";
};
# "cloudflare_r2_bucket"."cache" = {
# account_id = "68c4b3ab47c1a97037ab5a938f772d69";
# name = "wce-attic-cache";
# storage_class = "Standard";
# };
#"digitalocean_droplet"."do-wce-lighthouse1" = {
# image = "177939596"; # nixos-digitalocean
# name = "WCE-Lighthouse1";
# region = "nyc3";
# size = "s-1vcpu-1gb";
# ssh_keys = ["45378200"];
#};
};
}