template.yaml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. ---
  2. kind: terraform
  3. metadata:
  4. name: Cloudflare Zero Trust Access Application
  5. description: |-
  6. Create Cloudflare Zero Trust Access application with policies.
  7. Supports service token authentication and IP-based access policies.
  8. Project: https://www.cloudflare.com/zero-trust/
  9. Documentation: https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs/resources/zero_trust_access_application
  10. version: 5.12.0
  11. author: Christian Lempa
  12. date: "2025-11-11"
  13. tags: []
  14. icon:
  15. provider: selfh
  16. id: cloudflare
  17. draft: false
  18. spec:
  19. application:
  20. title: Application
  21. required: true
  22. vars:
  23. app_name:
  24. description: Application name
  25. type: str
  26. default: my_application
  27. domain:
  28. description: Application domain
  29. type: hostname
  30. default: app.example.com
  31. session_duration:
  32. description: Session duration (e.g., 15m, 1h, 24h)
  33. type: str
  34. default: 15m
  35. general:
  36. vars:
  37. account_id_value:
  38. description: Cloudflare Account ID
  39. type: str
  40. resource_name:
  41. description: Terraform resource name (alphanumeric and underscores only)
  42. type: str
  43. default: ztna_app
  44. zone_id_value:
  45. description: Cloudflare Zone ID
  46. type: str
  47. ip_policy:
  48. title: IP-Based Policy
  49. toggle: ip_policy_enabled
  50. vars:
  51. ip_policy_enabled:
  52. description: Enable IP-based policy
  53. type: bool
  54. default: false
  55. ip_policy_name:
  56. description: Policy name for IP-based access
  57. type: str
  58. default: ip_policy
  59. ip_ranges:
  60. description: Comma-separated list of IP ranges (CIDR notation)
  61. type: str
  62. default: 192.0.2.0/24
  63. service_token_policy:
  64. title: Service Token Policy
  65. toggle: service_token_enabled
  66. vars:
  67. service_token_enabled:
  68. description: Enable service token policy
  69. type: bool
  70. default: false
  71. service_token_id:
  72. description: Cloudflare service token ID
  73. type: str
  74. service_token_policy_name:
  75. description: Policy name for service token
  76. type: str
  77. default: service_token_policy