summaryrefslogtreecommitdiff
path: root/terranix/cloudflare/pages_domains.nix
diff options
context:
space:
mode:
authorSeth Flynn <[email protected]>2025-01-31 08:14:23 -0500
committerSeth Flynn <[email protected]>2025-02-03 05:34:09 -0500
commit082ef6167ea188de4a0439fe63baaca41b19b45b (patch)
treec51217b3b47601ee95cacfeaeaef426fb7128a6d /terranix/cloudflare/pages_domains.nix
parentd5ad065e31f4d84824463829eeabfb55dbe9ece4 (diff)
terraform: switch to plain hcl
• Removed input 'terranix' • Removed input 'terranix/bats-assert' • Removed input 'terranix/bats-support' • Removed input 'terranix/flake-parts' • Removed input 'terranix/nixpkgs' • Removed input 'terranix/systems' • Removed input 'terranix/terranix-examples'
Diffstat (limited to 'terranix/cloudflare/pages_domains.nix')
-rw-r--r--terranix/cloudflare/pages_domains.nix32
1 files changed, 0 insertions, 32 deletions
diff --git a/terranix/cloudflare/pages_domains.nix b/terranix/cloudflare/pages_domains.nix
deleted file mode 100644
index 531b2de..0000000
--- a/terranix/cloudflare/pages_domains.nix
+++ /dev/null
@@ -1,32 +0,0 @@
-{ lib, ... }:
-let
- setDomainsFor =
- {
- account_id,
- project,
- domains,
- }:
- lib.listToAttrs (
- map (domain: {
- name = "${project}_${builtins.replaceStrings [ "." ] [ "_" ] domain}";
- value = {
- inherit account_id;
- project_name = lib.tfRef "resource.cloudflare_pages_project.${project}.name";
- inherit domain;
- };
- }) domains
- );
-in
-{
- resource.cloudflare_pages_domain =
- setDomainsFor {
- account_id = lib.tfRef "var.account_id";
- project = "personal_website";
- domains = [ "getchoo.com" ];
- }
- // setDomainsFor {
- account_id = lib.tfRef "var.account_id";
- project = "teawie_api";
- domains = [ "api.getchoo.com" ];
- };
-}