Skip to content

Commit

Permalink
OPS-5899 Rename resources to standard naming (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
snovikov authored Apr 11, 2024
1 parent da4e1b2 commit e2fdd68
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
5 changes: 5 additions & 0 deletions data.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
data "cloudflare_zones" "domain" {
filter {
name = var.domain
}
}
8 changes: 1 addition & 7 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
data "cloudflare_zones" "domain" {
filter {
name = var.domain
}
}

resource "cloudflare_custom_pages" "custom_pages" {
resource "cloudflare_custom_pages" "this" {
zone_id = lookup(data.cloudflare_zones.domain.zones[0], "id")
for_each = local.custom_pages
type = each.value["type"]
Expand Down
2 changes: 1 addition & 1 deletion outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ output "domain" {

output "custom_pages" {
description = "Created Cloudflare custom pages for the given zone."
value = cloudflare_custom_pages.custom_pages
value = cloudflare_custom_pages.this
}

0 comments on commit e2fdd68

Please sign in to comment.