Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terraform catchpoint resource not working #35374

Closed
LokhandeLata opened this issue Jun 22, 2024 · 7 comments
Closed

Terraform catchpoint resource not working #35374

LokhandeLata opened this issue Jun 22, 2024 · 7 comments
Labels
bug new new issue not yet triaged provider/checkpoint

Comments

@LokhandeLata
Copy link

LokhandeLata commented Jun 22, 2024

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 = "www.google.com"
  end_time      = "2024-10-30T04: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-22T17:56:11.720+0530 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2024-06-22T17:56:11.728+0530 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/catchpoint/catchpoint/1.1.0/linux_amd64/terraform-provider-catchpoint_v1.1.0 pid=223383
2024-06-22T17:56:11.728+0530 [DEBUG] provider: plugin exited

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

  1. terraform init
  2. terraform plan
  3. terraform apply

Additional Context

terraform {
  required_providers {
    catchpoint = {
      source  = "catchpoint/catchpoint"
      version = "1.1.0"
    }
  }
  required_version = ">= 1.2.0"
}

provider "catchpoint" {
  api_token = "User_catchpoint_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 = "www.google.com"
  end_time      = "2024-10-30T04:59:00Z"
}

References

No response

@LokhandeLata LokhandeLata added bug new new issue not yet triaged labels Jun 22, 2024
@liamcervante
Copy link
Member

Hi @LokhandeLata, thanks for filing this! Based on the error message, I think this is likely to be an issue with the checkpoint provider rather than Terraform itself. The individual providers are managed separately, I think the checkpoint provider is managed within https://github.com/CheckPointSW/terraform-provider-checkpoint.

I'm going to close the issue here, but I'd encourage you to open an issue directly with the Checkpoint provider team.

Thanks!

@liamcervante liamcervante closed this as not planned Won't fix, can't repro, duplicate, stale Jun 24, 2024
@LokhandeLata
Copy link
Author

LokhandeLata commented Jun 24, 2024 via email

@liamcervante
Copy link
Member

I think you should be able to file a new issue here: https://github.com/CheckPointSW/terraform-provider-checkpoint/issues/new

@LokhandeLata
Copy link
Author

Thanks!

@LokhandeLata
Copy link
Author

LokhandeLata commented Jun 24, 2024

Above repo is for checkpoint repo, my issue is for https://github.com/catchpoint/terraform-provider-catchpoint
I cannot see any option there to create an issue, how will I get that?

@liamcervante
Copy link
Member

Ah yeah, apologies! Yeah, I totally misread the provider name!

You're right, they don't seem to allow external users to file issues via the Github repository. Unfortunately they're an entirely external company / provider so I don't have any special access either. You could try raising an issue in the Hashicorp discuss forum and tagging this provider to see if anyone else has been able to get in touch.

Alternatively, if you have an enterprise or support contract with Catchpoint directly, you might be able to get in touch with them that way.

@crw (our community manager), are you aware of any other paths of escalation we have for external / partner providers?

@crw
Copy link
Collaborator

crw commented Jun 24, 2024

In this case I do not think there is an internal escalation path for Catchpoint as I am not sure they are an official "partner", although I can check with the partnerships team. In any case, @LokhandeLata, if you are a customer of Catchpoint (or even if you are not) I would escalate through their support channels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug new new issue not yet triaged provider/checkpoint
Projects
None yet
Development

No branches or pull requests

3 participants