Open psaini0212 opened 1 year ago
switching TF_LOG to trace gives more details -
apigee_target_server.server["dev-HTTPBINTS"]: Creating...
2022-09-19T16:57:29.713Z [INFO] Starting apply for apigee_target_server.server["dev-HTTPBINTS"]
apigee_target_server.server["int-CompaxAuth"]: Creating...
2022-09-19T16:57:29.714Z [DEBUG] apigee_target_server.server["dev-CompaxAuth"]: applying the planned Create change
2022-09-19T16:57:29.714Z [INFO] Starting apply for apigee_target_server.server["int-CompaxAuth"]
2022-09-19T16:57:29.714Z [TRACE] GRPCProvider: ApplyResourceChange
2022-09-19T16:57:29.714Z [DEBUG] apigee_target_server.server["dev-HTTPBINTS"]: applying the planned Create change
2022-09-19T16:57:29.714Z [TRACE] GRPCProvider: ApplyResourceChange
2022-09-19T16:57:29.714Z [DEBUG] apigee_target_server.server["int-CompaxAuth"]: applying the planned Create change
2022-09-19T16:57:29.714Z [TRACE] GRPCProvider: ApplyResourceChange
2022-09-19T16:57:29.716Z [TRACE] provider.terraform-provider-apigee_v0.1.51: Received request: tf_proto_version=5.2 tf_provider_addr=scastria/apigee tf_req_id=50acc080-6225-5520-cd5b-d1c47e241fab tf_resource_type=apigee_target_server @module=sdk.proto @caller=github.com/hashicorp/terraform-plugin-go@v0.9.0/tfprotov5/tf5server/server.go:800 tf_rpc=ApplyResourceChange timestamp=2022-09-19T16:57:29.714Z
2022-09-19T16:57:29.716Z [TRACE] provider.terraform-provider-apigee_v0.1.51: Received request: @caller=github.com/hashicorp/terraform-plugin-go@v0.9.0/tfprotov5/tf5server/server.go:800 tf_provider_addr=scastria/apigee tf_req_id=3adf10c7-8dbe-4edf-8b38-5909c846ed87 @module=sdk.proto tf_proto_version=5.2 tf_resource_type=apigee_target_server tf_rpc=ApplyResourceChange timestamp=2022-09-19T16:57:29.714Z
2022-09-19T16:57:29.716Z [TRACE] provider.terraform-provider-apigee_v0.1.51: Calling downstream: @module=sdk.proto tf_proto_version=5.2 tf_req_id=50acc080-6225-5520-cd5b-d1c47e241fab tf_resource_type=apigee_target_server @caller=github.com/hashicorp/terraform-plugin-go@v0.9.0/tfprotov5/tf5server/server.go:811 tf_provider_addr=scastria/apigee tf_rpc=ApplyResourceChange timestamp=2022-09-19T16:57:29.714Z
2022-09-19T16:57:29.716Z [TRACE] provider.terraform-provider-apigee_v0.1.51: Calling downstream: @caller=github.com/hashicorp/terraform-plugin-go@v0.9.0/tfprotov5/tf5server/server.go:811 tf_rpc=ApplyResourceChange tf_proto_version=5.2 tf_provider_addr=scastria/apigee tf_req_id=3adf10c7-8dbe-4edf-8b38-5909c846ed87 tf_resource_type=apigee_target_server @module=sdk.proto timestamp=2022-09-19T16:57:29.714Z
2022-09-19T16:57:29.716Z [TRACE] provider.terraform-provider-apigee_v0.1.51: Calling downstream: tf_provider_addr=scastria/apigee tf_resource_type=apigee_target_server tf_rpc=ApplyResourceChange @module=sdk.helper_schema tf_req_id=3adf10c7-8dbe-4edf-8b38-5909c846ed87 @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.15.0/helper/schema/resource.go:836 timestamp=2022-09-19T16:57:29.715Z
2022-09-19T16:57:29.716Z [TRACE] provider.terraform-provider-apigee_v0.1.51: Calling downstream: @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.15.0/helper/schema/resource.go:836 @module=sdk.helper_schema tf_req_id=50acc080-6225-5520-cd5b-d1c47e241fab tf_rpc=ApplyResourceChange tf_provider_addr=scastria/apigee tf_resource_type=apigee_target_server timestamp=2022-09-19T16:57:29.715Z
2022-09-19T16:57:29.716Z [INFO] provider.terraform-provider-apigee_v0.1.51: 2022/09/19 16:57:29 Apigee Management API: POST /v1/organizations/prj-vo-digital-p-apigeeorg/environments/dev-CompaxAuth/targetservers HTTP/1.1
Host: api.enterprise.apigee.com:443
Authorization: Bearer ya29.c.xxxxxxxxxxxxxxxxxx........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
Content-Type: application/json
{"name":"CompaxAuth","host":"hostname","port":443,"isEnabled":true}: timestamp=2022-09-19T16:57:29.715Z
2022-09-19T16:57:29.716Z [TRACE] provider.terraform-provider-apigee_v0.1.51: Received request: tf_req_id=f6e67fcb-c8d2-97e1-8f50-b67bb69840d6 tf_rpc=ApplyResourceChange tf_resource_type=apigee_target_server @caller=github.com/hashicorp/terraform-plugin-go@v0.9.0/tfprotov5/tf5server/server.go:800 @module=sdk.proto tf_proto_version=5.2 tf_provider_addr=scastria/apigee timestamp=2022-09-19T16:57:29.715Z
2022-09-19T16:57:29.716Z [TRACE] provider.terraform-provider-apigee_v0.1.51: Calling downstream: tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/terraform-plugin-go@v0.9.0/tfprotov5/tf5server/server.go:811 tf_proto_version=5.2 tf_provider_addr=scastria/apigee tf_resource_type=apigee_target_server @module=sdk.proto tf_req_id=f6e67fcb-c8d2-97e1-8f50-b67bb69840d6 timestamp=2022-09-19T16:57:29.715Z
2022-09-19T16:57:29.717Z [INFO] provider.terraform-provider-apigee_v0.1.51: 2022/09/19 16:57:29 Apigee Management API: POST /v1/organizations/prj-vo-digital-p-apigeeorg/environments/dev-HTTPBINTS/targetservers HTTP/1.1
Host: api.enterprise.apigee.com:443
Authorization: Bearer ya29.c.xxxxxxxxxxxxxxxxxx........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
Content-Type: application/json
{"name":"HTTPBINTS","host":"httpbin.org","port":80,"isEnabled":true}: timestamp=2022-09-19T16:57:29.717Z
2022-09-19T16:57:29.718Z [TRACE] provider.terraform-provider-apigee_v0.1.51: Calling downstream: @module=sdk.helper_schema tf_provider_addr=scastria/apigee tf_resource_type=apigee_target_server tf_req_id=f6e67fcb-c8d2-97e1-8f50-b67bb69840d6 tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.15.0/helper/schema/resource.go:836 timestamp=2022-09-19T16:57:29.717Z
2022-09-19T16:57:29.718Z [INFO] provider.terraform-provider-apigee_v0.1.51: 2022/09/19 16:57:29 Apigee Management API: POST /v1/organizations/prj-vo-digital-p-apigeeorg/environments/int-CompaxAuth/targetservers HTTP/1.1
Host: api.enterprise.apigee.com:443
Authorization: Bearer ya29.c.xxxxxxxxxxxxxxxxxx........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
Content-Type: application/json
{"name":"CompaxAuth","host":"hostname","port":80,"isEnabled":true}: timestamp=2022-09-19T16:57:29.718Z
2022-09-19T16:57:29.844Z [TRACE] provider.terraform-provider-apigee_v0.1.51: Called downstream: tf_req_id=f6e67fcb-c8d2-97e1-8f50-b67bb69840d6 tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.15.0/helper/schema/resource.go:838 @module=sdk.helper_schema tf_provider_addr=scastria/apigee tf_resource_type=apigee_target_server timestamp=2022-09-19T16:57:29.844Z
2022-09-19T16:57:29.844Z [TRACE] provider.terraform-provider-apigee_v0.1.51: Called downstream: @module=sdk.proto tf_proto_version=5.2 @caller=github.com/hashicorp/terraform-plugin-go@v0.9.0/tfprotov5/tf5server/server.go:817 tf_provider_addr=scastria/apigee tf_req_id=f6e67fcb-c8d2-97e1-8f50-b67bb69840d6 tf_resource_type=apigee_target_server tf_rpc=ApplyResourceChange timestamp=2022-09-19T16:57:29.844Z
2022-09-19T16:57:29.844Z [TRACE] provider.terraform-provider-apigee_v0.1.51: Called downstream: @module=sdk.helper_schema tf_provider_addr=scastria/apigee tf_req_id=50acc080-6225-5520-cd5b-d1c47e241fab @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.15.0/helper/schema/resource.go:838 tf_resource_type=apigee_target_server tf_rpc=ApplyResourceChange timestamp=2022-09-19T16:57:29.844Z
2022-09-19T16:57:29.844Z [TRACE] provider.terraform-provider-apigee_v0.1.51: Called downstream: @module=sdk.proto tf_proto_version=5.2 tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/terraform-plugin-go@v0.9.0/tfprotov5/tf5server/server.go:817 tf_resource_type=apigee_target_server tf_provider_addr=scastria/apigee tf_req_id=50acc080-6225-5520-cd5b-d1c47e241fab timestamp=2022-09-19T16:57:29.844Z
2022-09-19T16:57:29.844Z [TRACE] provider.terraform-provider-apigee_v0.1.51: Served request: tf_rpc=ApplyResourceChange @module=sdk.proto tf_proto_version=5.2 tf_provider_addr=scastria/apigee tf_req_id=50acc080-6225-5520-cd5b-d1c47e241fab tf_resource_type=apigee_target_server @caller=github.com/hashicorp/terraform-plugin-go@v0.9.0/tfprotov5/tf5server/server.go:824 timestamp=2022-09-19T16:57:29.844Z
2022-09-19T16:57:29.844Z [TRACE] provider.terraform-provider-apigee_v0.1.51: Served request: @caller=github.com/hashicorp/terraform-plugin-go@v0.9.0/tfprotov5/tf5server/server.go:824 @module=sdk.proto tf_proto_version=5.2 tf_provider_addr=scastria/apigee tf_resource_type=apigee_target_server tf_req_id=f6e67fcb-c8d2-97e1-8f50-b67bb69840d6 tf_rpc=ApplyResourceChange timestamp=2022-09-19T16:57:29.844Z
2022-09-19T16:57:29.845Z [TRACE] maybeTainted: apigee_target_server.server["int-CompaxAuth"] encountered an error during creation, so it is now marked as tainted
2022-09-19T16:57:29.845Z [TRACE] NodeAbstractResouceInstance.writeResourceInstanceState to workingState for apigee_target_server.server["int-CompaxAuth"]
2022-09-19T16:57:29.845Z [TRACE] NodeAbstractResouceInstance.writeResourceInstanceState: removing state object for apigee_target_server.server["int-CompaxAuth"]
2022-09-19T16:57:29.845Z [TRACE] evalApplyProvisioners: apigee_target_server.server["int-CompaxAuth"] is tainted, so skipping provisioning
2022-09-19T16:57:29.845Z [TRACE] maybeTainted: apigee_target_server.server["int-CompaxAuth"] was already tainted, so nothing to do
2022-09-19T16:57:29.845Z [TRACE] NodeAbstractResouceInstance.writeResourceInstanceState to workingState for apigee_target_server.server["int-CompaxAuth"]
2022-09-19T16:57:29.845Z [TRACE] NodeAbstractResouceInstance.writeResourceInstanceState: removing state object for apigee_target_server.server["int-CompaxAuth"]
2022-09-19T16:57:29.845Z [TRACE] maybeTainted: apigee_target_server.server["dev-HTTPBINTS"] encountered an error during creation, so it is now marked as tainted
2022-09-19T16:57:29.845Z [TRACE] NodeAbstractResouceInstance.writeResourceInstanceState to workingState for apigee_target_server.server["dev-HTTPBINTS"]
2022-09-19T16:57:29.846Z [ERROR] vertex "apigee_target_server.server[\"int-CompaxAuth\"]" error: Status 401: Message: Unauthorized:
2022-09-19T16:57:29.846Z [TRACE] vertex "apigee_target_server.server[\"int-CompaxAuth\"]": visit complete, with errors
2022-09-19T16:57:29.846Z [TRACE] NodeAbstractResouceInstance.writeResourceInstanceState: removing state object for apigee_target_server.server["dev-HTTPBINTS"]
2022-09-19T16:57:29.846Z [TRACE] evalApplyProvisioners: apigee_target_server.server["dev-HTTPBINTS"] is tainted, so skipping provisioning
2022-09-19T16:57:29.846Z [TRACE] maybeTainted: apigee_target_server.server["dev-HTTPBINTS"] was already tainted, so nothing to do
2022-09-19T16:57:29.846Z [TRACE] NodeAbstractResouceInstance.writeResourceInstanceState to workingState for apigee_target_server.server["dev-HTTPBINTS"]
2022-09-19T16:57:29.846Z [TRACE] NodeAbstractResouceInstance.writeResourceInstanceState: removing state object for apigee_target_server.server["dev-HTTPBINTS"]
2022-09-19T16:57:29.847Z [ERROR] vertex "apigee_target_server.server[\"dev-HTTPBINTS\"]" error: Status 401: Message: Unauthorized:
@scastria can you advise pls, Sir?
I am using below version of the provider -
I am setting below env variable for authentication- export APIGEE_ACCESS_TOKEN="REDACTED"
Error -
Can you help please?