launchdarkly / terraform-provider-launchdarkly

Terraform LaunchDarkly provider
https://www.terraform.io/docs/providers/launchdarkly/
Mozilla Public License 2.0
23 stars 24 forks source link

Make it possible to configure HTTP_TIMEOUT const #174

Closed yoprysk-dh-nf closed 1 year ago

yoprysk-dh-nf commented 1 year ago

When performing parallel deployments for the same project but different environments(terraform-provider-launchdarkly version: 2.13.3), we start to see next errors:

Error: failed to update flag "feature-flag-name" in project "default": Patch "https://app.launchdarkly.com/api/v2/flags/default/feature-flag-namei": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

Could you make HTTP_TIMEOUT configurable instead of hard coded value? https://github.com/launchdarkly/terraform-provider-launchdarkly/blob/b34058fbc17076e14dd291bc16416001ff29cb7e/launchdarkly/config.go#L25

ldhenry commented 1 year ago

Hey @yoprysk-dh-nf,

This sounds like a reasonable request. We'll plan to include it with out next release. I'll let you know when it's available.

Thanks, Henry

ldhenry commented 1 year ago

Hey @yoprysk-dh-nf , we just released v2.15.0 with a new http_timeout provider option.

I'm going to close this issue for now but feel free to reopen if you are still experiencing issues.

yoprysk-dh-nf commented 1 year ago

Hey @yoprysk-dh-nf , we just released v2.15.0 with a new http_timeout provider option.

I'm going to close this issue for now but feel free to reopen if you are still experiencing issues.

Thanks a lot, for quick fix