Hi!
Terraform v1.4.6
on linux_amd64
I have a problem with importing resources to terraform and trying to debug and resolve it.
I’ve set the env var TF_LOG=TRACE and when I run terraform import command I see in logs only REQUEST and RESPONSE headers, but I don’t see response body with particular error description.
Example:
[DEBUG] Vault API Request Details:
---[ REQUEST ]---------------------------------------
GET /v1/identity/group/id/ac267046-69cc-647f-2761-f94e745146d0 HTTP/1.1
Host: my.vault.host
User-Agent: Go-http-client/1.1
X-Vault-Namespace: aaa
X-Vault-Request: true
X-Vault-Token: hmac-sha256:...xxx...
Accept-Encoding: gzip
[DEBUG] Vault API Response Details:
---[ RESPONSE ]--------------------------------------
HTTP/2.0 403 Forbidden
Content-Length: 60
Cache-Control: no-store
Content-Type: application/json
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Vault-Namespace: aaa
If I’m using curl for such request I see the error message in response body which helped me to resolve the issue. But in TF logs there is no API response body, only one thing I can see is response code.
I googled about it but with no success.
Maybe someone had the same issue and resolved it?
Thanks in advance.