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

Cant get collection list #9

Open
faahmed77 opened this issue Jul 22, 2024 · 0 comments
Open

Cant get collection list #9

faahmed77 opened this issue Jul 22, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@faahmed77
Copy link

Describe the bug

I provided the console_url in terraform.vars like below

console_url = "us-west1.cloud.twistlock.com/us-x-xxxxxxxx"

But when I run terraform, it throws the below error

│ unable to create Collection "\"Example\"": get collection: list collections: Get "https:///us-west1.cloud.twistlock.com/api/v32.06/collections": http: no Host in request URL

it is not using the complete console address to get the collection list, it should have been trying https:///us-west1.cloud.twistlock.com/us-x-xxxxxxxx/api/v32.06/collections

Expected behavior

It should be using the below link

https://us-west1.cloud.twistlock.com/us-x-xxxxxxxx/api/v32.06/collections

Current behavior

https://us-west1.cloud.twistlock.com/api/v32.06/collections

Steps to reproduce

  1. setup variables in terraform.vars
  2. setup providers.tf
  3. setup collections.tf
  4. run terraform apply

Screenshots

Plan: 1 to add, 0 to change, 0 to destroy.

Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.

Enter a value: yes

prismacloud-waas_collection.Example: Creating...

│ Error: Client Error

│ with prismacloud-waas_collection.Example,
│ on collection.tf line 1, in resource "prismacloud-waas_collection" "Example":
│ 1: resource "prismacloud-waas_collection" "Example" {

│ unable to create Collection ""Example"": get collection: list collections: Get "https:///us-west1.cloud.twistlock.com/api/v32.06/collections": http: no Host in request URL

@faahmed77 faahmed77 added the bug Something isn't working label Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant