Skip to content

Commit

Permalink
Depend explicitly on the challenge to prevent
Browse files Browse the repository at this point in the history
some errors like
```
"registry.terraform.io/cloudflare/cloudflare" produced an invalid new value
for .ownership_challenge: was null, but now cty.StringVal("[redacted]..[redacted]")
```

As recommended by @jacobbednarz in
cloudflare#2752 (comment)

Workaround for issue like
cloudflare#2794
cloudflare#2752
cloudflare#3001
  • Loading branch information
gdubicki committed Apr 22, 2024
1 parent 4e0a09e commit 9aaedf6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/resources/cloudflare_logpush_job/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ data "aws_s3_bucket_object" "challenge_file" {
}

resource "cloudflare_logpush_job" "example_job" {
depends_on = [
cloudflare_logpush_ownership_challenge.ownership_challenge, data.aws_s3_bucket_object.challenge_file
]
enabled = true
zone_id = "0da42c8d2132a9ddaf714f9e7c920711"
name = "My-logpush-job"
Expand Down

0 comments on commit 9aaedf6

Please sign in to comment.