cloudflare / terraform-provider-cloudflare

Cloudflare Terraform Provider
https://registry.terraform.io/providers/cloudflare/cloudflare
Mozilla Public License 2.0
789 stars 610 forks source link

Error: Unrecognized zone setting name: origin_max_http_version (1006) #1810

Closed alex-feel closed 2 years ago

alex-feel commented 2 years ago

Confirmation

Terraform and Cloudflare provider version

Terraform v1.2.4 on windows_amd64

Affected resource(s)

Terraform configuration files

terraform {
  required_version = ">= 0.15.0"

  required_providers {
    cloudflare = {
      source  = "cloudflare/cloudflare"
      version = ">= 3.19.0"
    }
  }
}

variable "cloudflare_api_token" {
  type      = string
  sensitive = true
}

provider "cloudflare" {
  api_token = var.cloudflare_api_token
}

resource "cloudflare_zone" "example_edu" {
  zone = "example.edu"
}

resource "cloudflare_zone_settings_override" "example_edu" {
    zone_id = cloudflare_zone.example_edu.id
    settings {
      origin_max_http_version = 1
    }
}

Debug output

terraform : 2022-08-01T17:26:59.379+0300 [INFO]  Terraform version: 1.2.4
At line:1 char:1
+ terraform apply -auto-approve *> terraform-apply-log.txt
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (2022-08-01T17:2... version: 1.2.4:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError

2022-08-01T17:26:59.380+0300 [DEBUG] using github.com/hashicorp/go-tfe v1.0.0
2022-08-01T17:26:59.380+0300 [DEBUG] using github.com/hashicorp/hcl/v2 v2.12.0
2022-08-01T17:26:59.380+0300 [DEBUG] using github.com/hashicorp/terraform-config-inspect v0.0.0-20210209133302-4fd17a0faac2
2022-08-01T17:26:59.380+0300 [DEBUG] using github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734
2022-08-01T17:26:59.380+0300 [DEBUG] using github.com/zclconf/go-cty v1.10.0
2022-08-01T17:26:59.380+0300 [INFO]  Go runtime version: go1.18.1
2022-08-01T17:26:59.380+0300 [INFO]  CLI args: []string{"C:\\Program Files\\CLI\\terraform.exe", "apply", "-auto-approve"}
2022-08-01T17:26:59.382+0300 [DEBUG] Attempting to open CLI config file: C:\Users\Alex\AppData\Roaming\terraform.rc
2022-08-01T17:26:59.382+0300 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2022-08-01T17:26:59.383+0300 [INFO]  Loading CLI configuration from C:\Users\Alex\AppData\Roaming\terraform.d\credentials.tfrc.json
2022-08-01T17:26:59.384+0300 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2022-08-01T17:26:59.384+0300 [DEBUG] ignoring non-existing provider search directory C:\Users\Alex\AppData\Roaming\terraform.d\plugins
2022-08-01T17:26:59.384+0300 [DEBUG] ignoring non-existing provider search directory C:\Users\Alex\AppData\Roaming\HashiCorp\Terraform\plugins
2022-08-01T17:26:59.385+0300 [INFO]  CLI command args: []string{"apply", "-auto-approve"}
2022-08-01T17:26:59.393+0300 [DEBUG] New state was assigned lineage "0792fa32-c409-a3d9-f7ba-83afccc4c595"
2022-08-01T17:26:59.539+0300 [DEBUG] checking for provisioner in "."
2022-08-01T17:26:59.539+0300 [DEBUG] checking for provisioner in "C:\\Program Files\\CLI"
2022-08-01T17:26:59.545+0300 [INFO]  backend/local: starting Apply operation
2022-08-01T17:26:59.565+0300 [DEBUG] created provider logger: level=debug
2022-08-01T17:26:59.566+0300 [INFO]  provider: configuring client automatic mTLS
2022-08-01T17:26:59.582+0300 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.20.0/windows_amd64/terraform-provider-cloudflare_v3.20.0.exe args=[.terraform/providers/registry.terraform.io/c
loudflare/cloudflare/3.20.0/windows_amd64/terraform-provider-cloudflare_v3.20.0.exe]
2022-08-01T17:26:59.588+0300 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.20.0/windows_amd64/terraform-provider-cloudflare_v3.20.0.exe pid=22140
2022-08-01T17:26:59.589+0300 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.20.0/windows_amd64/terraform-provider-cloudflare_v3.20.0.exe
2022-08-01T17:26:59.646+0300 [INFO]  provider.terraform-provider-cloudflare_v3.20.0.exe: configuring server automatic mTLS: timestamp=2022-08-01T17:26:59.645+0300
2022-08-01T17:26:59.671+0300 [DEBUG] provider: using plugin: version=5
2022-08-01T17:26:59.672+0300 [DEBUG] provider.terraform-provider-cloudflare_v3.20.0.exe: plugin address: network=tcp address=127.0.0.1:10430 timestamp=2022-08-01T17:26:59.671+0300
2022-08-01T17:26:59.713+0300 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2022-08-01T17:26:59.729+0300 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.20.0/windows_amd64/terraform-provider-cloudflare_v3.20.0.exe pid=22140
2022-08-01T17:26:59.729+0300 [DEBUG] provider: plugin exited
2022-08-01T17:26:59.729+0300 [DEBUG] Building and walking validate graph
2022-08-01T17:26:59.729+0300 [DEBUG] ProviderTransformer: "cloudflare_zone.example_edu" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/cloudflare/cloudflare"]
2022-08-01T17:26:59.729+0300 [DEBUG] ProviderTransformer: "cloudflare_zone_settings_override.example_edu" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/cloudflare/cloudflare"]
2022-08-01T17:26:59.730+0300 [DEBUG] ReferenceTransformer: "cloudflare_zone.example_edu" references: []
2022-08-01T17:26:59.730+0300 [DEBUG] ReferenceTransformer: "cloudflare_zone_settings_override.example_edu" references: [cloudflare_zone.example_edu]
2022-08-01T17:26:59.730+0300 [DEBUG] ReferenceTransformer: "var.cloudflare_api_token" references: []
2022-08-01T17:26:59.730+0300 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/cloudflare/cloudflare\"]" references: [var.cloudflare_api_token]
2022-08-01T17:26:59.730+0300 [DEBUG] Starting graph walk: walkValidate
2022-08-01T17:26:59.731+0300 [DEBUG] created provider logger: level=debug
2022-08-01T17:26:59.731+0300 [INFO]  provider: configuring client automatic mTLS
2022-08-01T17:26:59.747+0300 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.20.0/windows_amd64/terraform-provider-cloudflare_v3.20.0.exe args=[.terraform/providers/registry.terraform.io/c
loudflare/cloudflare/3.20.0/windows_amd64/terraform-provider-cloudflare_v3.20.0.exe]
2022-08-01T17:26:59.755+0300 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.20.0/windows_amd64/terraform-provider-cloudflare_v3.20.0.exe pid=12652
2022-08-01T17:26:59.755+0300 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.20.0/windows_amd64/terraform-provider-cloudflare_v3.20.0.exe
2022-08-01T17:26:59.816+0300 [INFO]  provider.terraform-provider-cloudflare_v3.20.0.exe: configuring server automatic mTLS: timestamp=2022-08-01T17:26:59.814+0300
2022-08-01T17:26:59.841+0300 [DEBUG] provider: using plugin: version=5
2022-08-01T17:26:59.841+0300 [DEBUG] provider.terraform-provider-cloudflare_v3.20.0.exe: plugin address: address=127.0.0.1:10430 network=tcp timestamp=2022-08-01T17:26:59.841+0300
2022-08-01T17:26:59.892+0300 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2022-08-01T17:26:59.913+0300 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.20.0/windows_amd64/terraform-provider-cloudflare_v3.20.0.exe pid=12652
2022-08-01T17:26:59.913+0300 [DEBUG] provider: plugin exited
2022-08-01T17:26:59.913+0300 [INFO]  backend/local: apply calling Plan
2022-08-01T17:26:59.913+0300 [DEBUG] Building and walking plan graph for NormalMode
2022-08-01T17:26:59.914+0300 [DEBUG] ProviderTransformer: "cloudflare_zone_settings_override.example_edu (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/cloudflare/cloudflare"]
2022-08-01T17:26:59.914+0300 [DEBUG] ProviderTransformer: "cloudflare_zone.example_edu (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/cloudflare/cloudflare"]
2022-08-01T17:26:59.914+0300 [DEBUG] ReferenceTransformer: "cloudflare_zone.example_edu (expand)" references: []
2022-08-01T17:26:59.915+0300 [DEBUG] ReferenceTransformer: "cloudflare_zone_settings_override.example_edu (expand)" references: [cloudflare_zone.example_edu (expand)]
2022-08-01T17:26:59.915+0300 [DEBUG] ReferenceTransformer: "var.cloudflare_api_token" references: []
2022-08-01T17:26:59.915+0300 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/cloudflare/cloudflare\"]" references: [var.cloudflare_api_token]
2022-08-01T17:26:59.915+0300 [DEBUG] Starting graph walk: walkPlan
2022-08-01T17:26:59.921+0300 [DEBUG] created provider logger: level=debug
2022-08-01T17:26:59.921+0300 [INFO]  provider: configuring client automatic mTLS
2022-08-01T17:26:59.940+0300 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.20.0/windows_amd64/terraform-provider-cloudflare_v3.20.0.exe args=[.terraform/providers/registry.terraform.io/c
loudflare/cloudflare/3.20.0/windows_amd64/terraform-provider-cloudflare_v3.20.0.exe]
2022-08-01T17:26:59.949+0300 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.20.0/windows_amd64/terraform-provider-cloudflare_v3.20.0.exe pid=24196
2022-08-01T17:26:59.949+0300 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.20.0/windows_amd64/terraform-provider-cloudflare_v3.20.0.exe
2022-08-01T17:27:00.008+0300 [INFO]  provider.terraform-provider-cloudflare_v3.20.0.exe: configuring server automatic mTLS: timestamp=2022-08-01T17:27:00.006+0300
2022-08-01T17:27:00.033+0300 [DEBUG] provider: using plugin: version=5
2022-08-01T17:27:00.033+0300 [DEBUG] provider.terraform-provider-cloudflare_v3.20.0.exe: plugin address: address=127.0.0.1:10430 network=tcp timestamp=2022-08-01T17:27:00.033+0300
2022-08-01T17:27:00.081+0300 [WARN]  ValidateProviderConfig from "provider[\"registry.terraform.io/cloudflare/cloudflare\"]" changed the config value, but that value is unused
2022-08-01T17:27:00.082+0300 [DEBUG] Resource instance state not found for node "cloudflare_zone.example_edu", instance cloudflare_zone.example_edu
2022-08-01T17:27:00.082+0300 [DEBUG] ReferenceTransformer: "cloudflare_zone.example_edu" references: []
2022-08-01T17:27:00.082+0300 [DEBUG] refresh: cloudflare_zone.example_edu: no state, so not refreshing
2022-08-01T17:27:00.086+0300 [WARN]  Provider "registry.terraform.io/cloudflare/cloudflare" produced an invalid plan for cloudflare_zone.example_edu, but we are tolerating it because it is using the legacy plugin SDK.
    The following problems may be the cause of any confusing errors from downstream operations:
      - .type: planned value cty.StringVal("full") for a non-computed attribute
      - .paused: planned value cty.False for a non-computed attribute
2022-08-01T17:27:00.086+0300 [DEBUG] Resource instance state not found for node "cloudflare_zone_settings_override.example_edu", instance cloudflare_zone_settings_override.example_edu
2022-08-01T17:27:00.086+0300 [DEBUG] ReferenceTransformer: "cloudflare_zone_settings_override.example_edu" references: []
2022-08-01T17:27:00.086+0300 [DEBUG] refresh: cloudflare_zone_settings_override.example_edu: no state, so not refreshing
2022-08-01T17:27:00.091+0300 [WARN]  Provider "registry.terraform.io/cloudflare/cloudflare" produced an invalid plan for cloudflare_zone_settings_override.example_edu, but we are tolerating it because it is using the legacy plugin SDK.
    The following problems may be the cause of any confusing errors from downstream operations:
      - .settings[0].minify: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
      - .settings[0].mobile_redirect: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
      - .settings[0].security_header: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
2022-08-01T17:27:00.091+0300 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2022-08-01T17:27:00.099+0300 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.20.0/windows_amd64/terraform-provider-cloudflare_v3.20.0.exe pid=24196
2022-08-01T17:27:00.099+0300 [DEBUG] provider: plugin exited
2022-08-01T17:27:00.099+0300 [DEBUG] building apply graph to check for errors
2022-08-01T17:27:00.100+0300 [DEBUG] Resource state not found for node "cloudflare_zone.example_edu", instance cloudflare_zone.example_edu
2022-08-01T17:27:00.100+0300 [DEBUG] Resource state not found for node "cloudflare_zone_settings_override.example_edu", instance cloudflare_zone_settings_override.example_edu
2022-08-01T17:27:00.100+0300 [DEBUG] ProviderTransformer: "cloudflare_zone_settings_override.example_edu (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/cloudflare/cloudflare"]
2022-08-01T17:27:00.100+0300 [DEBUG] ProviderTransformer: "cloudflare_zone.example_edu (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/cloudflare/cloudflare"]
2022-08-01T17:27:00.100+0300 [DEBUG] ProviderTransformer: "cloudflare_zone.example_edu" (*terraform.NodeApplyableResourceInstance) needs provider["registry.terraform.io/cloudflare/cloudflare"]
2022-08-01T17:27:00.100+0300 [DEBUG] ProviderTransformer: "cloudflare_zone_settings_override.example_edu" (*terraform.NodeApplyableResourceInstance) needs provider["registry.terraform.io/cloudflare/cloudflare"]
2022-08-01T17:27:00.100+0300 [DEBUG] ReferenceTransformer: "cloudflare_zone_settings_override.example_edu (expand)" references: []
2022-08-01T17:27:00.100+0300 [DEBUG] ReferenceTransformer: "cloudflare_zone.example_edu (expand)" references: []
2022-08-01T17:27:00.100+0300 [DEBUG] ReferenceTransformer: "var.cloudflare_api_token" references: []
2022-08-01T17:27:00.100+0300 [DEBUG] ReferenceTransformer: "cloudflare_zone.example_edu" references: []
2022-08-01T17:27:00.100+0300 [DEBUG] ReferenceTransformer: "cloudflare_zone_settings_override.example_edu" references: [cloudflare_zone.example_edu (expand) cloudflare_zone.example_edu cloudflare_zone.example_edu]
2022-08-01T17:27:00.100+0300 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/cloudflare/cloudflare\"]" references: [var.cloudflare_api_token]

-----------------------------------------------------: timestamp=2022-08-01T17:27:08.988+0300
2022-08-01T17:27:08.993+0300 [DEBUG] provider.terraform-provider-cloudflare_v3.20.0.exe: Read CloudflareZone initial settings: &cloudflare.ZoneSettingResponse{Response:cloudflare.Response{Success:true, Errors:[]cloudflare.ResponseInfo{}, Messages:
[]cloudflare.ResponseInfo{}}, Result:[]cloudflare.ZoneSetting{cloudflare.ZoneSetting{ID:"0rtt", Editable:true, ModifiedOn:"", Value:"off", TimeRemaining:0}, cloudflare.ZoneSetting{ID:"advanced_ddos", Editable:false, ModifiedOn:"", Value:"on", Time
Remaining:0}, cloudflare.ZoneSetting{ID:"always_online", Editable:true, ModifiedOn:"", Value:"off", TimeRemaining:0}, cloudflare.ZoneSetting{ID:"always_use_https", Editable:true, ModifiedOn:"", Value:"off", TimeRemaining:0}, cloudflare.ZoneSetting
{ID:"automatic_https_rewrites", Editable:true, ModifiedOn:"", Value:"on", TimeRemaining:0}, cloudflare.ZoneSetting{ID:"brotli", Editable:true, ModifiedOn:"", Value:"on", TimeRemaining:0}, cloudflare.ZoneSetting{ID:"browser_cache_ttl", Editable:tru
e, ModifiedOn:"", Value:14400, TimeRemaining:0}, cloudflare.ZoneSetting{ID:"browser_check", Editable:true, ModifiedOn:"", Value:"on", TimeRemaining:0}, cloudflare.ZoneSetting{ID:"cache_level", Editable:true, ModifiedOn:"", Value:"aggressive", Time
Remaining:0}, cloudflare.ZoneSetting{ID:"challenge_ttl", Editable:true, ModifiedOn:"", Value:1800, TimeRemaining:0}, cloudflare.ZoneSetting{ID:"ciphers", Editable:true, ModifiedOn:"", Value:[]interface {}{}, TimeRemaining:0}, cloudflare.ZoneSettin
g{ID:"cname_flattening", Editable:false, ModifiedOn:"", Value:"flatten_at_root", TimeRemaining:0}, cloudflare.ZoneSetting{ID:"development_mode", Editable:true, ModifiedOn:"", Value:"off", TimeRemaining:0}, cloudflare.ZoneSetting{ID:"early_hints", 
Editable:true, ModifiedOn:"", Value:"off", TimeRemaining:0}, cloudflare.ZoneSetting{ID:"edge_cache_ttl", Editable:true, ModifiedOn:"", Value:7200, TimeRemaining:0}, cloudflare.ZoneSetting{ID:"email_obfuscation", Editable:true, ModifiedOn:"", Value
:"on", TimeRemaining:0}, cloudflare.ZoneSetting{ID:"filter_logs_to_cloudflare", Editable:true, ModifiedOn:"", Value:"off", TimeRemaining:0}, cloudflare.ZoneSetting{ID:"hotlink_protection", Editable:true, ModifiedOn:"", Value:"off", TimeRemaining:0
}, cloudflare.ZoneSetting{ID:"http2", Editable:false, ModifiedOn:"", Value:"on", TimeRemaining:0}, cloudflare.ZoneSetting{ID:"http3", Editable:true, ModifiedOn:"", Value:"on", TimeRemaining:0}, cloudflare.ZoneSetting{ID:"ip_geolocation", Editable:
true, ModifiedOn:"", Value:"on", TimeRemaining:0}, cloudflare.ZoneSetting{ID:"ipv6", Editable:true, ModifiedOn:"2022-08-01T14:04:05.504340Z", Value:"on", TimeRemaining:0}, cloudflare.ZoneSetting{ID:"log_to_cloudflare", Editable:true, ModifiedOn:""
, Value:"on", TimeRemaining:0}, cloudflare.ZoneSetting{ID:"long_lived_grpc", Editable:false, ModifiedOn:"", Value:"off", TimeRemaining:0}, cloudflare.ZoneSetting{ID:"max_upload", Editable:true, ModifiedOn:"", Value:100, TimeRemaining:0}, cloudflar
e.ZoneSetting{ID:"min_tls_version", Editable:true, ModifiedOn:"", Value:"1.0", TimeRemaining:0}, cloudflare.ZoneSetting{ID:"minify", Editable:true, ModifiedOn:"", Value:map[string]interface {}{"css":"off", "html":"off", "js":"off"}, TimeRemaining:
0}, cloudflare.ZoneSetting{ID:"mirage", Editable:false, ModifiedOn:"", Value:"off", TimeRemaining:0}, cloudflare.ZoneSetting{ID:"mobile_redirect", Editable:true, ModifiedOn:"", Value:map[string]interface {}{"mobile_subdomain":interface {}(nil), "s
tatus":"off", "strip_uri":false}, TimeRemaining:0}, cloudflare.ZoneSetting{ID:"opportunistic_encryption", Editable:true, ModifiedOn:"", Value:"on", TimeRemaining:0}, cloudflare.ZoneSetting{ID:"opportunistic_onion", Editable:true, ModifiedOn:"", Va
lue:"on", TimeRemaining:0}, cloudflare.ZoneSetting{ID:"orange_to_orange", Editable:true, ModifiedOn:"", Value:"off", TimeRemaining:0}, cloudflare.ZoneSetting{ID:"origin_error_page_pass_thru", Editable:false, ModifiedOn:"", Value:"off", TimeRemaini
ng:0}, cloudflare.ZoneSetting{ID:"polish", Editable:false, ModifiedOn:"", Value:"off", TimeRemaining:0}, cloudflare.ZoneSetting{ID:"prefetch_preload", Editable:false, ModifiedOn:"", Value:"off", TimeRemaining:0}, cloudflare.ZoneSetting{ID:"privacy
_pass", Editable:true, ModifiedOn:"", Value:"on", TimeRemaining:0}, cloudflare.ZoneSetting{ID:"proxy_read_timeout", Editable:false, ModifiedOn:"", Value:"100", TimeRemaining:0}, cloudflare.ZoneSetting{ID:"pseudo_ipv4", Editable:true, ModifiedOn:""
, Value:"off", TimeRemaining:0}, cloudflare.ZoneSetting{ID:"response_buffering", Editable:false, ModifiedOn:"", Value:"off", TimeRemaining:0}, cloudflare.ZoneSetting{ID:"rocket_loader", Editable:true, ModifiedOn:"", Value:"off", TimeRemaining:0}, 
cloudflare.ZoneSetting{ID:"security_header", Editable:true, ModifiedOn:"", Value:map[string]interface {}{"strict_transport_security":map[string]interface {}{"enabled":false, "include_subdomains":false, "max_age":0, "nosniff":false, "preload":false
}}, TimeRemaining:0}, cloudflare.ZoneSetting{ID:"security_level", Editable:true, ModifiedOn:"", Value:"medium", TimeRemaining:0}, cloudflare.ZoneSetting{ID:"server_side_exclude", Editable:true, ModifiedOn:"", Value:"on", TimeRemaining:0}, cloudfla
re.ZoneSetting{ID:"sort_query_string_for_cache", Editable:false, ModifiedOn:"", Value:"off", TimeRemaining:0}, cloudflare.ZoneSetting{ID:"ssl", Editable:true, ModifiedOn:"", Value:"full", TimeRemaining:0}, cloudflare.ZoneSetting{ID:"tls_1_2_only",
 Editable:true, ModifiedOn:"", Value:"off", TimeRemaining:0}, cloudflare.ZoneSetting{ID:"tls_1_3", Editable:true, ModifiedOn:"", Value:"on", TimeRemaining:0}, cloudflare.ZoneSetting{ID:"tls_client_auth", Editable:true, ModifiedOn:"", Value:"off", 
TimeRemaining:0}, cloudflare.ZoneSetting{ID:"true_client_ip_header", Editable:false, ModifiedOn:"", Value:"off", TimeRemaining:0}, cloudflare.ZoneSetting{ID:"visitor_ip", Editable:true, ModifiedOn:"", Value:"on", TimeRemaining:0}, cloudflare.ZoneS
etting{ID:"waf", Editable:true, ModifiedOn:"", Value:"off", TimeRemaining:0}, cloudflare.ZoneSetting{ID:"webp", Editable:false, ModifiedOn:"", Value:"off", TimeRemaining:0}, cloudflare.ZoneSetting{ID:"websockets", Editable:true, ModifiedOn:"", Val
ue:"on", TimeRemaining:0}, cloudflare.ZoneSetting{ID:"binary_ast", Editable:true, ModifiedOn:"", Value:"off", TimeRemaining:0}, cloudflare.ZoneSetting{ID:"h2_prioritization", Editable:true, ModifiedOn:"", Value:"off", TimeRemaining:0}, cloudflare.
ZoneSetting{ID:"image_resizing", Editable:false, ModifiedOn:"", Value:"off", TimeRemaining:0}, cloudflare.ZoneSetting{ID:"early_hints", Editable:true, ModifiedOn:"", Value:"off", TimeRemaining:0}}}: tf_resource_type=cloudflare_zone_settings_overri
de @caller=github.com/cloudflare/terraform-provider-cloudflare/internal/provider/resource_cloudflare_zone_settings_override.go:61 @module=cloudflare tf_provider_addr=registry.terraform.io/cloudflare/cloudflare tf_req_id=0c2216a2-7a8e-a52f-d23e-671
615e7d421 tf_rpc=ApplyResourceChange timestamp=2022-08-01T17:27:08.989+0300
2022-08-01T17:27:08.994+0300 [WARN]  provider.terraform-provider-cloudflare_v3.20.0.exe: Value not in schema returned from API zone settings (is it new?) - "advanced_ddos" : "on": timestamp=2022-08-01T17:27:08.993+0300
2022-08-01T17:27:08.994+0300 [WARN]  provider.terraform-provider-cloudflare_v3.20.0.exe: Value not in schema returned from API zone settings (is it new?) - "edge_cache_ttl" : 7200: timestamp=2022-08-01T17:27:08.994+0300
2022-08-01T17:27:08.994+0300 [WARN]  provider.terraform-provider-cloudflare_v3.20.0.exe: Value not in schema returned from API zone settings (is it new?) - "long_lived_grpc" : "off": timestamp=2022-08-01T17:27:08.994+0300
2022-08-01T17:27:08.994+0300 [DEBUG] provider.terraform-provider-cloudflare_v3.20.0.exe: Flattened Cloudflare Zone Settings: map[string]interface {}{"always_online":"off", "always_use_https":"off", "automatic_https_rewrites":"on", "binary_ast":"of
f", "brotli":"on", "browser_cache_ttl":14400, "browser_check":"on", "cache_level":"aggressive", "challenge_ttl":1800, "ciphers":[]interface {}{}, "cname_flattening":"flatten_at_root", "development_mode":"off", "early_hints":"off", "email_obfuscati
on":"on", "filter_logs_to_cloudflare":"off", "h2_prioritization":"off", "hotlink_protection":"off", "http2":"on", "http3":"on", "image_resizing":"off", "ip_geolocation":"on", "ipv6":"on", "log_to_cloudflare":"on", "max_upload":100, "min_tls_versio
n":"1.0", "minify":[]interface {}{map[string]interface {}{"css":"off", "html":"off", "js":"off"}}, "mirage":"off", "mobile_redirect":[]interface {}{map[string]interface {}{"mobile_subdomain":interface {}(nil), "status":"off", "strip_uri":false}}, 
"opportunistic_encryption":"on", "opportunistic_onion":"on", "orange_to_orange":"off", "origin_error_page_pass_thru":"off", "polish":"off", "prefetch_preload":"off", "privacy_pass":"on", "proxy_read_timeout":"100", "pseudo_ipv4":"off", "response_b
uffering":"off", "rocket_loader":"off", "security_header":[]interface {}{map[string]interface {}{"enabled":false, "include_subdomains":false, "max_age":0, "nosniff":false, "preload":false}}, "security_level":"medium", "server_side_exclude":"on", "
sort_query_string_for_cache":"off", "ssl":"full", "tls_1_2_only":"off", "tls_1_3":"on", "tls_client_auth":"off", "true_client_ip_header":"off", "visitor_ip":"on", "waf":"off", "webp":"off", "websockets":"on", "zero_rtt":"off"}: @module=cloudflare 
tf_resource_type=cloudflare_zone_settings_override tf_rpc=ApplyResourceChange @caller=github.com/cloudflare/terraform-provider-cloudflare/internal/provider/resource_cloudflare_zone_settings_override.go:194 tf_req_id=0c2216a2-7a8e-a52f-d23e-671615e
7d421 tf_provider_addr=registry.terraform.io/cloudflare/cloudflare timestamp=2022-08-01T17:27:08.994+0300
2022-08-01T17:27:08.994+0300 [DEBUG] provider.terraform-provider-cloudflare_v3.20.0.exe: Flattened Cloudflare Read Only Zone Settings: []string{"advanced_ddos", "cname_flattening", "http2", "long_lived_grpc", "mirage", "origin_error_page_pass_thru
", "polish", "prefetch_preload", "proxy_read_timeout", "response_buffering", "sort_query_string_for_cache", "true_client_ip_header", "webp", "image_resizing"}: tf_rpc=ApplyResourceChange tf_req_id=0c2216a2-7a8e-a52f-d23e-671615e7d421 tf_resource_t
ype=cloudflare_zone_settings_override @caller=github.com/cloudflare/terraform-provider-cloudflare/internal/provider/resource_cloudflare_zone_settings_override.go:215 @module=cloudflare tf_provider_addr=registry.terraform.io/cloudflare/cloudflare t
imestamp=2022-08-01T17:27:08.994+0300
2022-08-01T17:27:08.995+0300 [DEBUG] provider.terraform-provider-cloudflare_v3.20.0.exe: Saved CloudflareZone initial settings: []interface {}{map[string]interface {}{"always_online":"off", "always_use_https":"off", "automatic_https_rewrites":"on"
, "binary_ast":"off", "brotli":"on", "browser_cache_ttl":14400, "browser_check":"on", "cache_level":"aggressive", "challenge_ttl":1800, "ciphers":[]interface {}{}, "cname_flattening":"flatten_at_root", "development_mode":"off", "early_hints":"off"
, "email_obfuscation":"on", "filter_logs_to_cloudflare":"off", "h2_prioritization":"off", "hotlink_protection":"off", "http2":"on", "http3":"on", "image_resizing":"off", "ip_geolocation":"on", "ipv6":"on", "log_to_cloudflare":"on", "max_upload":10
0, "min_tls_version":"1.0", "minify":[]interface {}{map[string]interface {}{"css":"off", "html":"off", "js":"off"}}, "mirage":"off", "mobile_redirect":[]interface {}{map[string]interface {}{"mobile_subdomain":"", "status":"off", "strip_uri":false}
}, "opportunistic_encryption":"on", "opportunistic_onion":"on", "orange_to_orange":"off", "origin_error_page_pass_thru":"off", "origin_max_http_version":"", "polish":"off", "prefetch_preload":"off", "privacy_pass":"on", "proxy_read_timeout":"100",
 "pseudo_ipv4":"off", "response_buffering":"off", "rocket_loader":"off", "security_header":[]interface {}{map[string]interface {}{"enabled":false, "include_subdomains":false, "max_age":0, "nosniff":false, "preload":false}}, "security_level":"mediu
m", "server_side_exclude":"on", "sort_query_string_for_cache":"off", "ssl":"full", "tls_1_2_only":"off", "tls_1_3":"on", "tls_client_auth":"off", "true_client_ip_header":"off", "universal_ssl":"", "visitor_ip":"on", "waf":"off", "webp":"off", "web
sockets":"on", "zero_rtt":"off"}}: @module=cloudflare tf_req_id=0c2216a2-7a8e-a52f-d23e-671615e7d421 tf_resource_type=cloudflare_zone_settings_override @caller=github.com/cloudflare/terraform-provider-cloudflare/internal/provider/resource_cloudfla
re_zone_settings_override.go:74 tf_provider_addr=registry.terraform.io/cloudflare/cloudflare tf_rpc=ApplyResourceChange timestamp=2022-08-01T17:27:08.994+0300
2022-08-01T17:27:08.995+0300 [DEBUG] provider.terraform-provider-cloudflare_v3.20.0.exe: Cloudflare Zone Settings update configuration: []cloudflare.ZoneSetting{cloudflare.ZoneSetting{ID:"origin_max_http_version", Editable:false, ModifiedOn:"", Va
lue:"1", TimeRemaining:0}}: @caller=github.com/cloudflare/terraform-provider-cloudflare/internal/provider/resource_cloudflare_zone_settings_override.go:270 tf_provider_addr=registry.terraform.io/cloudflare/cloudflare tf_req_id=0c2216a2-7a8e-a52f-d
23e-671615e7d421 tf_rpc=ApplyResourceChange @module=cloudflare tf_resource_type=cloudflare_zone_settings_override timestamp=2022-08-01T17:27:08.995+0300
2022-08-01T17:27:08.995+0300 [DEBUG] provider.terraform-provider-cloudflare_v3.20.0.exe: Cloudflare API Request Details:
---[ REQUEST ]---------------------------------------
PATCH /client/v4/zones/55f7fac036e286c4b6e1b187fedc8df5/settings HTTP/1.1
Host: api.cloudflare.com
User-Agent: terraform/1.2.4 terraform-plugin-sdk/2.10.1 terraform-provider-cloudflare/dev
Content-Length: 92
Authorization: [redacted]
Content-Type: application/json
Accept-Encoding: gzip

{
 "items": [
  {
   "id": "origin_max_http_version",
   "editable": false,
   "value": "1",
   "time_remaining": 0
  }
 ]
}
-----------------------------------------------------: timestamp=2022-08-01T17:27:08.995+0300
2022-08-01T17:27:09.842+0300 [DEBUG] provider.terraform-provider-cloudflare_v3.20.0.exe: Cloudflare API Response Details:
---[ RESPONSE ]--------------------------------------
HTTP/2.0 400 Bad Request
Connection: close
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Cf-Cache-Status: DYNAMIC
Cf-Ray: 733f40b74dccd300-LCA
Content-Type: application/json
Date: Mon, 01 Aug 2022 14:27:08 GMT
Expect-Ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Expires: Sun, 25 Jan 1981 05:00:00 GMT
Pragma: no-cache
Server: cloudflare
Set-Cookie: __cflb=0H28vgHxwvgAQtjUGU56Rb8iNWZVUvXhrEzZGZCoCPX; SameSite=Lax; path=/; expires=Mon, 01-Aug-22 16:57:09 GMT; HttpOnly
Set-Cookie: __cfruid=b00493a0f1bcdc246eafbf691cc2bd5986f2992d-1659364028; path=/; domain=.api.cloudflare.com; HttpOnly; Secure; SameSite=None
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN

{
 "success": false,
 "errors": [
  {
   "code": 1006,
   "message": "Unrecognized zone setting name: origin_max_http_version"
  }
 ],
 "messages": [],
 "result": null
}
-----------------------------------------------------: timestamp=2022-08-01T17:27:09.842+0300
2022-08-01T17:27:09.844+0300 [ERROR] provider.terraform-provider-cloudflare_v3.20.0.exe: Response contains error diagnostic: tf_req_id=0c2216a2-7a8e-a52f-d23e-671615e7d421 tf_rpc=ApplyResourceChange diagnostic_severity=ERROR tf_proto_version=5.3 d
iagnostic_detail= diagnostic_summary="Unrecognized zone setting name: origin_max_http_version (1006)" tf_provider_addr=registry.terraform.io/cloudflare/cloudflare tf_resource_type=cloudflare_zone_settings_override @caller=github.com/hashicorp/terr
aform-plugin-go@v0.12.0/tfprotov5/internal/diag/diagnostics.go:56 @module=sdk.proto timestamp=2022-08-01T17:27:09.844+0300
2022-08-01T17:27:09.850+0300 [ERROR] vertex "cloudflare_zone_settings_override.example_edu" error: Unrecognized zone setting name: origin_max_http_version (1006)
Γò╖
Γöé Error: Unrecognized zone setting name: origin_max_http_version (1006)
Γöé 
Γöé   with cloudflare_zone_settings_override.example_edu,
Γöé   on main.tf line 25, in resource "cloudflare_zone_settings_override" "example_edu":
Γöé   25: resource "cloudflare_zone_settings_override" "example_edu" {
Γöé 
Γò╡
2022-08-01T17:27:09.863+0300 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2022-08-01T17:27:09.875+0300 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.20.0/windows_amd64/terraform-provider-cloudflare_v3.20.0.exe pid=28052
2022-08-01T17:27:09.875+0300 [DEBUG] provider: plugin exited

Panic output

No response

Expected output

origin_max_http_version setting value should be applied.

Actual output

╷
│ Error: Unrecognized zone setting name: origin_max_http_version (1006)
│
│   with cloudflare_zone_settings_override.example_edu,
│   on main.tf line 25, in resource "cloudflare_zone_settings_override" "example_edu":
│   25: resource "cloudflare_zone_settings_override" "example_edu" {
│
╵

Steps to reproduce

  1. Use the configuration above.
  2. Run terraform apply.

Additional factoids

No response

References

jacobbednarz commented 2 years ago

this is gated behind an entitlement. you'll need to contact your account team to enable before being used.

a-mykhailenko commented 11 months ago

Please check this(For future who will be research ) https://developers.cloudflare.com/dns/manage-dns-records/how-to/subdomains-outside-cloudflare/#:~:text=Log%20in%20to%20the%20Cloudflare,NS%20records%20for%20the%20subdomain.