From 8c63ccde2b32e7b3cab3f04b04e16fec27d6689f Mon Sep 17 00:00:00 2001 From: Thomas Cardin <49320132+ThomasCardin@users.noreply.github.com> Date: Thu, 21 Nov 2024 09:59:48 -0500 Subject: [PATCH] changed record to for loop --- terraform/modules/records/providers.tf | 2 +- terraform/modules/zero_trust_application/main.tf | 12 ++++++++++++ .../modules/zero_trust_application/providers.tf | 0 .../modules/zero_trust_application/variables.tf | 0 terraform/providers.tf | 2 +- 5 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 terraform/modules/zero_trust_application/main.tf create mode 100644 terraform/modules/zero_trust_application/providers.tf create mode 100644 terraform/modules/zero_trust_application/variables.tf diff --git a/terraform/modules/records/providers.tf b/terraform/modules/records/providers.tf index 4cdef5d..f4b6524 100644 --- a/terraform/modules/records/providers.tf +++ b/terraform/modules/records/providers.tf @@ -2,7 +2,7 @@ terraform { required_providers { cloudflare = { source = "cloudflare/cloudflare" - version = "~> 5.0.0-alpha1" + version = "5.0.0-alpha1" } } } \ No newline at end of file diff --git a/terraform/modules/zero_trust_application/main.tf b/terraform/modules/zero_trust_application/main.tf new file mode 100644 index 0000000..93be863 --- /dev/null +++ b/terraform/modules/zero_trust_application/main.tf @@ -0,0 +1,12 @@ +resource "cloudflare_zero_trust_access_application" "app" { + zone_id = "0da42c8d2132a9ddaf714f9e7c920711" + name = "staging application" + domain = "staging.example.com" + type = "self_hosted" + session_duration = "24h" + auto_redirect_to_identity = false + policies = [ + cloudflare_zero_trust_access_policy.example_1.id, + cloudflare_zero_trust_access_policy.example_2.id + ] +} \ No newline at end of file diff --git a/terraform/modules/zero_trust_application/providers.tf b/terraform/modules/zero_trust_application/providers.tf new file mode 100644 index 0000000..e69de29 diff --git a/terraform/modules/zero_trust_application/variables.tf b/terraform/modules/zero_trust_application/variables.tf new file mode 100644 index 0000000..e69de29 diff --git a/terraform/providers.tf b/terraform/providers.tf index 6676e70..2a46845 100644 --- a/terraform/providers.tf +++ b/terraform/providers.tf @@ -10,7 +10,7 @@ terraform { required_providers { cloudflare = { source = "cloudflare/cloudflare" - version = "~> 5.0.0-alpha1" + version = "5.0.0-alpha1" } } }