scastria / terraform-provider-apigee

Mozilla Public License 2.0
21 stars 19 forks source link

Debug terraform-provider-apigee #32

Closed NAbiKeerthana closed 2 years ago

NAbiKeerthana commented 2 years ago

Hello @scastria ,

I need to debug the terraform-provider-apigee for an issue. Is there any way to do that by giving a command from my Terraform CLI. I have implemented a functionality to add certs to truststores and When I run the below command, I am getting the below mentioned issue.

terraform import apigee_cert.trustStore envName:truststoreName:certName

and the issue: image

Appreciate your help. Thanks !

scastria commented 2 years ago

The only way I debug is to set TF_LOG to Debug. This will cause tons of debug output to print during the Apigee provider usage. If you search the output for Apigee Management API, you will find every single API call made to the Apigee server.

My best guess is that this is another case of the Apigee Management API being inconsistent between the different versions of Apigee. I tested with the Private Cloud version. You are probably using a different version and the provider needs to be tweaked slightly to accommodate your version’s API.

NAbiKeerthana commented 2 years ago

Sure. Let me take a look at it. Thanks !