{"action":"created","issue":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-cloudflare/issues/54","repository_url":"https://api.github.com/repos/terraform-providers/terraform-provider-cloudflare","labels_url":"https://api.github.com/repos/terraform-providers/terraform-provider-cloudflare/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/terraform-providers/terraform-provider-cloudflare/issues/54/comments","events_url":"https://api.github.com/repos/terraform-providers/terraform-provider-cloudflare/issues/54/events","html_url":"https://github.com/terraform-providers/terraform-provider-cloudflare/issues/54","id":318427735,"node_id":"MDU6SXNzdWUzMTg0Mjc3MzU=","number":54,"title":"Cloudflare Load Balancer (and Pool) examples are not working","user":{"login":"hashibot[bot]","id":35615658,"node_id":"MDM6Qm90MzU2MTU2NTg=","avatar_url":"https://avatars2.githubusercontent.com/in/8332?v=4","gravatar_id":"","url":"https://api.github.com/users/hashibot%5Bbot%5D","html_url":"https://github.com/apps/hashibot","followers_url":"https://api.github.com/users/hashibot%5Bbot%5D/followers","following_url":"https://api.github.com/users/hashibot%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/hashibot%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/hashibot%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hashibot%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/hashibot%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/hashibot%5Bbot%5D/repos","events_url":"https://api.github.com/users/hashibot%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/hashibot%5Bbot%5D/received_events","type":"Bot","site_admin":false},"labels":[{"id":620326791,"node_id":"MDU6TGFiZWw2MjAzMjY3OTE=","url":"https://api.github.com/repos/terraform-providers/terraform-provider-cloudflare/labels/bug","name":"bug","color":"f7c6c7","default":true},{"id":620327082,"node_id":"MDU6TGFiZWw2MjAzMjcwODI=","url":"https://api.github.com/repos/terraform-providers/terraform-provider-cloudflare/labels/documentation","name":"documentation","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":19,"created_at":"2018-04-27T14:20:04Z","updated_at":"2018-07-26T17:54:08Z","closed_at":null,"author_association":"NONE","body":"_This issue was originally opened by @abacao as hashicorp/terraform#17948. It was migrated here as a result of the [provider split](https://www.hashicorp.com/blog/upcoming-provider-changes-in-terraform-0-10/). The original body of the issue is below._\r\n\r\n<hr>\r\n\r\nI'm able to set all the DNS entries just fine but when I'm trying to provision the Load Balancer as shown in the examples pages:\r\nhttps://www.terraform.io/docs/providers/cloudflare/r/load_balancer.html\r\nand\r\nhttps://www.terraform.io/docs/providers/cloudflare/r/load_balancer_pool.html\r\n\r\nWhat I get is this:\r\n\r\n> * cloudflare_load_balancer_pool.foo: 1 error(s) occurred:\r\n\r\n> * cloudflare_load_balancer_pool.foo: error creating load balancer pool: error from makeRequest: HTTP status 400: content \"{\\n  \\\"result\\\": null,\\n  \\\"success\\\": false,\\n  \\\"errors\\\": [\\n    {\\n      \\\"code\\\": 1002,\\n      \\\"message\\\": \\\"the origin list length must be in range [1, 0]: validation failed\\\"\\n    }\\n  ],\\n  \\\"messages\\\": []\\n}\\n\"\r\n\r\nFrom the example, I have only changed the zone name to correspond my own.\r\nThe output message is not helping me to figure it out either.\r\n\r\nthe complete tf file is this:\r\n`\r\nresource \"cloudflare_load_balancer\" \"bar\" {\r\n  zone = \"example.com\"\r\n  name = \"example-load-balancer\"\r\n  fallback_pool_id = \"${cloudflare_load_balancer_pool.foo.id}\"\r\n  default_pool_ids = [\"${cloudflare_load_balancer_pool.foo.id}\"]\r\n  description = \"example load balancer using geo-balancing\"\r\n  proxied = true\r\n  pop_pools {\r\n    pop = \"LAX\"\r\n    pool_ids = [\"${cloudflare_load_balancer_pool.foo.id}\"]\r\n  }\r\n  region_pools {\r\n    region = \"WNAM\"\r\n    pool_ids = [\"${cloudflare_load_balancer_pool.foo.id}\"]\r\n  }\r\n}\r\n\r\nresource \"cloudflare_load_balancer_pool\" \"foo\" {\r\n  name = \"example-lb-pool\"\r\n  origins {\r\n    name = \"example-1\"\r\n    address = \"192.0.2.1\"\r\n    enabled = false\r\n  }\r\n}\r\n`\r\n\r\nPS - the terraform plan runs OK, it's only when applying that the $*** hits the fan..."},"comment":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-cloudflare/issues/comments/408181046","html_url":"https://github.com/terraform-providers/terraform-provider-cloudflare/issues/54#issuecomment-408181046","issue_url":"https://api.github.com/repos/terraform-providers/terraform-provider-cloudflare/issues/54","id":408181046,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODE4MTA0Ng==","user":{"login":"garrettgalow","id":2433030,"node_id":"MDQ6VXNlcjI0MzMwMzA=","avatar_url":"https://avatars0.githubusercontent.com/u/2433030?v=4","gravatar_id":"","url":"https://api.github.com/users/garrettgalow","html_url":"https://github.com/garrettgalow","followers_url":"https://api.github.com/users/garrettgalow/followers","following_url":"https://api.github.com/users/garrettgalow/following{/other_user}","gists_url":"https://api.github.com/users/garrettgalow/gists{/gist_id}","starred_url":"https://api.github.com/users/garrettgalow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garrettgalow/subscriptions","organizations_url":"https://api.github.com/users/garrettgalow/orgs","repos_url":"https://api.github.com/users/garrettgalow/repos","events_url":"https://api.github.com/users/garrettgalow/events{/privacy}","received_events_url":"https://api.github.com/users/garrettgalow/received_events","type":"User","site_admin":false},"created_at":"2018-07-26T17:54:08Z","updated_at":"2018-07-26T17:54:08Z","author_association":"NONE","body":"just a note of my versions when I ran that:\r\nTerraform v0.11.7\r\n+ provider.cloudflare v1.0.0"}}
{"actor":{"display_login":"garrettgalow"}}