Skip to content

Commit

Permalink
Merge pull request #32 from adinhodovic/fix-zone-id
Browse files Browse the repository at this point in the history
fix: zone id reference
  • Loading branch information
adinhodovic authored Mar 2, 2025
2 parents cbc5b8a + a15664d commit bc5a9a3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Simple maintenance page with your logo, fav icon, company name, font and email w

```terraform
module "hodovi_cc_maintenance" {
source = "git::[email protected]:adinhodovic/terraform-cloudflare-maintenance.git?ref=0.9.0"
source = "git::[email protected]:adinhodovic/terraform-cloudflare-maintenance.git?ref=0.9.1"
cloudflare_zone = "hodovi.cc"
patterns = ["hodovi.cc/maintenance/*", "hodovi.cc/example/*"]
company_name = "HoneyLogic"
Expand All @@ -47,7 +47,7 @@ maintenance starts/ends:

```terraform
module "hodovi_cc_maintenance" {
source = "git::[email protected]:adinhodovic/terraform-cloudflare-maintenance.git?ref=0.9.0"
source = "git::[email protected]:adinhodovic/terraform-cloudflare-maintenance.git?ref=0.9.1"
enabled = false
cloudflare_zone = "hodovi.cc"
patterns = ["hodovi.cc/maintenance/*"]
Expand All @@ -68,13 +68,13 @@ Example can be found in examples/root-example.
| Name | Version |
|------|---------|
| terraform | >= 0.13 |
| cloudflare | >= 3.31.0 |
| cloudflare | >= 5.1.0 |

## Providers

| Name | Version |
|------|---------|
| cloudflare | >= 3.31.0 |
| cloudflare | >= 5.1.0 |

## Resources

Expand Down
2 changes: 1 addition & 1 deletion examples/root-example/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module "hodovi_cc_maintenance" {
source = "git::[email protected]:adinhodovic/terraform-cloudflare-maintenance.git?ref=0.9.0"
source = "git::[email protected]:adinhodovic/terraform-cloudflare-maintenance.git?ref=0.9.1"
cloudflare_zone = "hodovi.cc"
patterns = ["hodovi.cc/maintenance/*", "hodovi.cc/example/*"]
company_name = "HoneyLogic"
Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ data "cloudflare_zone" "this" {

resource "cloudflare_workers_route" "this" {
count = var.enabled != false ? length(var.patterns) : 0
zone_id = data.cloudflare_zone.this.id
zone_id = data.cloudflare_zone.this.zone_id
pattern = var.patterns[count.index]
script = cloudflare_workers_script.this.script_name
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "terraform-cloudflare-maintenance",
"version": "0.9.0",
"version": "0.9.1",
"description": "Terraform module to create a responsive **Maintenance Page** using Cloudflare Workers.",
"main": "maintenance.js",
"directories": {
Expand Down

0 comments on commit bc5a9a3

Please sign in to comment.