@fractary/core 0.7.26 → 0.7.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/common/yaml-config.d.ts +15 -0
  2. package/dist/common/yaml-config.d.ts.map +1 -1
  3. package/dist/common/yaml-config.js.map +1 -1
  4. package/dist/config/__tests__/loader.test.js +84 -34
  5. package/dist/config/__tests__/loader.test.js.map +1 -1
  6. package/dist/config/defaults.d.ts +82 -2
  7. package/dist/config/defaults.d.ts.map +1 -1
  8. package/dist/config/defaults.js +112 -6
  9. package/dist/config/defaults.js.map +1 -1
  10. package/dist/config/defaults.test.js +226 -1
  11. package/dist/config/defaults.test.js.map +1 -1
  12. package/dist/config/index.d.ts +1 -1
  13. package/dist/config/index.d.ts.map +1 -1
  14. package/dist/config/index.js +2 -1
  15. package/dist/config/index.js.map +1 -1
  16. package/dist/config/loader.d.ts +8 -6
  17. package/dist/config/loader.d.ts.map +1 -1
  18. package/dist/config/loader.js +49 -37
  19. package/dist/config/loader.js.map +1 -1
  20. package/dist/config/schema.d.ts +12 -12
  21. package/dist/repo/config.d.ts +14 -11
  22. package/dist/repo/config.d.ts.map +1 -1
  23. package/dist/repo/config.js +59 -16
  24. package/dist/repo/config.js.map +1 -1
  25. package/dist/repo/config.test.js +9 -14
  26. package/dist/repo/config.test.js.map +1 -1
  27. package/dist/repo/path-generator.d.ts +6 -6
  28. package/dist/repo/path-generator.d.ts.map +1 -1
  29. package/dist/repo/path-generator.js +12 -8
  30. package/dist/repo/path-generator.js.map +1 -1
  31. package/dist/repo/path-generator.test.d.ts +1 -1
  32. package/dist/repo/path-generator.test.js +61 -82
  33. package/dist/repo/path-generator.test.js.map +1 -1
  34. package/package.json +1 -1
  35. package/templates/terraform/r2.tf.mustache +78 -0
  36. package/templates/terraform/s3.tf.mustache +204 -0
  37. package/templates/terraform/variables.tf.mustache +47 -0
@@ -0,0 +1,47 @@
1
+ # Fractary Cloud Storage - Shared Variables
2
+ #
3
+ # Variables used by the Fractary cloud storage Terraform configuration.
4
+ # Override defaults via terraform.tfvars or -var flags.
5
+
6
+ # --- Common Variables ---
7
+
8
+ variable "project_name" {
9
+ description = "Project name (used for resource naming and tags)"
10
+ type = string
11
+ default = "{{repo}}"
12
+ }
13
+
14
+ variable "bucket_name" {
15
+ description = "Name of the storage bucket"
16
+ type = string
17
+ default = "{{bucket}}"
18
+ }
19
+
20
+ # --- AWS S3 Variables ---
21
+
22
+ variable "aws_region" {
23
+ description = "AWS region for the S3 bucket"
24
+ type = string
25
+ default = "{{region}}"
26
+ }
27
+
28
+ # --- Cloudflare R2 Variables ---
29
+
30
+ variable "cloudflare_account_id" {
31
+ description = "Cloudflare account ID"
32
+ type = string
33
+ default = "{{account_id}}"
34
+ }
35
+
36
+ variable "cloudflare_api_token" {
37
+ description = "Cloudflare API token with R2 permissions"
38
+ type = string
39
+ sensitive = true
40
+ default = ""
41
+ }
42
+
43
+ variable "r2_location" {
44
+ description = "R2 bucket location hint (auto, wnam, enam, weur, eeur, apac)"
45
+ type = string
46
+ default = "auto"
47
+ }