From 082ef6167ea188de4a0439fe63baaca41b19b45b Mon Sep 17 00:00:00 2001 From: Seth Flynn Date: Fri, 31 Jan 2025 08:14:23 -0500 Subject: terraform: switch to plain hcl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • 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' --- terranix/cloudflare/pages_domains.nix | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 terranix/cloudflare/pages_domains.nix (limited to 'terranix/cloudflare/pages_domains.nix') 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" ]; - }; -} -- cgit v1.2.3