diff --git a/cloudflare/frontends/artifact_bucket.tf b/apps/frontends/artifact_bucket.tf similarity index 100% rename from cloudflare/frontends/artifact_bucket.tf rename to apps/frontends/artifact_bucket.tf diff --git a/cloudflare/frontends/bucket.tf b/apps/frontends/bucket.tf similarity index 100% rename from cloudflare/frontends/bucket.tf rename to apps/frontends/bucket.tf diff --git a/cloudflare/frontends/common_locals.tf b/apps/frontends/common_locals.tf similarity index 100% rename from cloudflare/frontends/common_locals.tf rename to apps/frontends/common_locals.tf diff --git a/cloudflare/frontends/dependencies.tf b/apps/frontends/dependencies.tf similarity index 100% rename from cloudflare/frontends/dependencies.tf rename to apps/frontends/dependencies.tf diff --git a/cloudflare/frontends/outputs.tf b/apps/frontends/outputs.tf similarity index 59% rename from cloudflare/frontends/outputs.tf rename to apps/frontends/outputs.tf index 5497a1f..9be1692 100644 --- a/cloudflare/frontends/outputs.tf +++ b/apps/frontends/outputs.tf @@ -5,3 +5,10 @@ output "bucket" { output "artifact_bucket" { value = try(module.artifact_bucket[0].bucket, null) } + +output "projects" { + value = merge({ + for fqdn, record in local.records: + record.variant => fqdn... + }) +} diff --git a/cloudflare/frontends/projects.tf b/apps/frontends/projects.tf similarity index 100% rename from cloudflare/frontends/projects.tf rename to apps/frontends/projects.tf diff --git a/cloudflare/frontends/required_providers.tf b/apps/frontends/required_providers.tf similarity index 100% rename from cloudflare/frontends/required_providers.tf rename to apps/frontends/required_providers.tf diff --git a/cloudflare/frontends/variables.tf b/apps/frontends/variables.tf similarity index 100% rename from cloudflare/frontends/variables.tf rename to apps/frontends/variables.tf