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

context deadline exceeded during terraform apply #211

Open
cocotton opened this issue Sep 14, 2022 · 1 comment
Open

context deadline exceeded during terraform apply #211

cocotton opened this issue Sep 14, 2022 · 1 comment

Comments

@cocotton
Copy link

I just had an issue where when I run terraform apply, if I have some other resources that take a while to have their states refreshed, the kubectl_manifest ones will error out with the following message:

| Error: failed to create kubernetes rest client for read of resource: Get "https://REDACTED/api?timeout=32s": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
│
│   with kubectl_manifest.redacted["ServiceAccount"],
│   on redacted.tf line 2, in resource "kubectl_manifest" "redacted":
│    2: resource "kubectl_manifest" "redacted" {
│

I managed to go around this issue by having the kubectl_manifest resources depend (with depends_on) on some non-related resource that has its state refreshed late in the terraform plan phase.

Would it be possible instead to specify a timeout longer than 32 seconds (as can be seen in the error message above)?

@ServerNinja
Copy link

We are experiencing similar issues. It would be very helpful to be able to adjust the 32 second timeout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants