Closed LokhandeLata closed 5 months ago
Terraform v1.8.5 on linux_amd64
required_providers { catchpoint = { source = "catchpoint/catchpoint" version = "1.1.0" } } required_version = ">= 1.2.0" }
provider "catchpoint" { api_token = "your_token" } resource "ssl_test" "chopper" { test_name = "SSLTF" provider = catchpoint division_id = User_division_id product_id = User_product_id folder_id = User_folder_id monitor = "ssl" test_location = "ssl://www.google.com" end_time = "2024-06-24T04:59:00Z" }
╷ │ Error: 400 bad request │ │ with ssl_test.chopper, │ on main.tf line 14, in resource "ssl_test" "chopper": │ 14: resource "ssl_test" "chopper" { │ ╵ 2024-06-24T15:16:36.750+0530 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF" 2024-06-24T15:16:36.752+0530 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/catchpoint/catchpoint/0.2.1/linux_amd64/terraform-provider-catchpoint_v0.2.1 pid=239279 2024-06-24T15:16:36.752+0530 [DEBUG] provider: plugin exited 2024-06-24T15:16:36.752+0530 [DEBUG] building apply graph to check for errors 2024-06-24T15:16:36.752+0530 [DEBUG] Resource state not found for node "ssl_test.chopper", instance ssl_test.chopper 2024-06-24T15:16:36.752+0530 [DEBUG] ProviderTransformer: "ssl_test.chopper" (terraform.NodeApplyableResourceInstance) needs provider["registry.terraform.io/catchpoint/catchpoint"] 2024-06-24T15:16:36.752+0530 [DEBUG] ProviderTransformer: "ssl_test.chopper (expand)" (terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/catchpoint/catchpoint"] 2024-06-24T15:16:36.752+0530 [DEBUG] ReferenceTransformer: "ssl_test.chopper (expand)" references: [] 2024-06-24T15:16:36.752+0530 [DEBUG] ReferenceTransformer: "ssl_test.chopper" references: [] 2024-06-24T15:16:36.752+0530 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/catchpoint/catchpoint\"]" references: []
Config file is vaild, api_token is valid so terraform apply cmd should work.
Config file is vaild, api_token is valid but still it is failing at the time of terraform apply cmd.
terraform apply
terraform init terraform plan terraform apply
Hi @LokhandeLata ,
I think you have a mistake. This is the repo of checkpoint provider and not catchpoint. Issue closed.
Terraform Version
Terraform v1.8.5 on linux_amd64
Terraform Configuration Files
required_providers { catchpoint = { source = "catchpoint/catchpoint" version = "1.1.0" } } required_version = ">= 1.2.0" }
provider "catchpoint" { api_token = "your_token" } resource "ssl_test" "chopper" { test_name = "SSLTF" provider = catchpoint division_id = User_division_id product_id = User_product_id folder_id = User_folder_id monitor = "ssl" test_location = "ssl://www.google.com" end_time = "2024-06-24T04:59:00Z" }
Debug Output
╷ │ Error: 400 bad request │ │ with ssl_test.chopper, │ on main.tf line 14, in resource "ssl_test" "chopper": │ 14: resource "ssl_test" "chopper" { │ ╵ 2024-06-24T15:16:36.750+0530 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF" 2024-06-24T15:16:36.752+0530 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/catchpoint/catchpoint/0.2.1/linux_amd64/terraform-provider-catchpoint_v0.2.1 pid=239279 2024-06-24T15:16:36.752+0530 [DEBUG] provider: plugin exited 2024-06-24T15:16:36.752+0530 [DEBUG] building apply graph to check for errors 2024-06-24T15:16:36.752+0530 [DEBUG] Resource state not found for node "ssl_test.chopper", instance ssl_test.chopper 2024-06-24T15:16:36.752+0530 [DEBUG] ProviderTransformer: "ssl_test.chopper" (terraform.NodeApplyableResourceInstance) needs provider["registry.terraform.io/catchpoint/catchpoint"] 2024-06-24T15:16:36.752+0530 [DEBUG] ProviderTransformer: "ssl_test.chopper (expand)" (terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/catchpoint/catchpoint"] 2024-06-24T15:16:36.752+0530 [DEBUG] ReferenceTransformer: "ssl_test.chopper (expand)" references: [] 2024-06-24T15:16:36.752+0530 [DEBUG] ReferenceTransformer: "ssl_test.chopper" references: [] 2024-06-24T15:16:36.752+0530 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/catchpoint/catchpoint\"]" references: []
Expected Behavior
Config file is vaild, api_token is valid so terraform apply cmd should work.
Actual Behavior
Config file is vaild, api_token is valid but still it is failing at the time of
terraform apply
cmd.Steps to Reproduce
terraform init terraform plan terraform apply