Skip to content

Instantly share code, notes, and snippets.

@knightsg
knightsg / gist:625955fa4fac94e0aff50a168ec3c4d9
Created July 15, 2025 23:33
cloudflare_load_balancer_monitor port issue
# cloudflare_load_balancer_monitor.webservice will be updated in-place
~ resource "cloudflare_load_balancer_monitor" "webservice" {
+ consecutive_down = 0
+ consecutive_up = 0
~ created_on = "2020-10-08T20:34:29.330234Z" -> (known after apply)
id = "<REDACTED>"
~ modified_on = "2022-11-08T00:21:53.666445Z" -> (known after apply)
+ port = 0
# (14 unchanged attributes hidden)
}
│ Error: Missing required argument
│ on workers_routes.tf line 35, in resource "cloudflare_workers_route" "excluded-paths":
│ 35: resource "cloudflare_workers_route" "excluded-paths" {
│ The argument "script" is required, but no definition was found.
@knightsg
knightsg / gist:918967470a8bb91abb2a8be1659a5cf5
Created May 5, 2025 23:17
cloudflare_zero_trust_gateway_settings issue
N/A
@knightsg
knightsg / gist:9ecf4bd423e7804479cf09494b70f846
Created May 1, 2025 21:12
Provider v5 migration issue: complications related to removed RPS option
N/A
@knightsg
knightsg / gist:dc073a89f7c3efa5c333717203b3e671
Last active April 24, 2025 20:48
cloudflare_authenticated_origin_pulls updated v5 config
│ Error: Unsupported argument
│ on ../cloudflare/modules/aop/main.tf line 5, in resource "cloudflare_authenticated_origin_pulls_certificate" "this":
│ 5: type = "per-hostname"
│ An argument named "type" is not expected here.
│ Error: Unsupported argument
│ on ../cloudflare/modules/aop/main.tf line 16, in resource "cloudflare_authenticated_origin_pulls" "this":
@knightsg
knightsg / gist:90f38ad73b3df8c23191976137607ab0
Created April 23, 2025 23:14
Cloudflare TF provider v5 migration error: cloudflare_zero_trust_access_policy application_id error
$ tf plan
│ Error: Unsupported argument
│ on cloudflare_access.tf line 307, in resource "cloudflare_zero_trust_access_policy" "groups":
│ 307: application_id = cloudflare_zero_trust_access_application.groups.id
│ An argument named "application_id" is not expected here.
@knightsg
knightsg / gist:5d8856ca28fcbb40171bf20f566885bf
Last active May 5, 2025 21:29
terraform plan output: cloudflare_zero_trust_device_default_profile_local_domain_fallback
# cloudflare_zero_trust_device_default_profile_local_domain_fallback.default wil
l be created
+ resource "cloudflare_zero_trust_device_default_profile_local_domain_fallback"
"default" {
+ account_id = "<redacted>"
+ description = (known after apply)
+ dns_server = (known after apply)
+ domains = [
+ {
+ suffix = "example"
@knightsg
knightsg / Apache_vhosts
Last active August 29, 2015 13:56
Apache vhosts setup with specific docroot owner
Hiera config:
apache_vhosts:
app:
servername: 'example.com'
serveraliases:
- '*.example.com'
port: '9000'
docroot: '/var/www'
docroot_owner: 'www-data'