Skip to content

Allow configurable timeout for backend type "azurerm" #2188

Closed
@joakimlemb

Description

@joakimlemb

OpenTofu Version

OpenTofu v1.8.4
on windows_amd64

The problem in your OpenTofu project

When there is a network issue with dataplane access to the storage account configured in azurerm backend tofu will appear not to respond for 15min before outputting a error (with default log levels):

15 min timeout error:

 Error: error loading state: blobs.Client#Get: Failure sending request: StatusCode=0 -- Original Error: Get "https://example.blob.core.windows.net/example/example.state": EOF

Attempted Solutions

Found no option for this under https://opentofu.org/docs/language/settings/backends/azurerm/

Proposal

Include a parameter for "timeout", the default seems to be 15min.

Example proposed config:

  backend "azurerm" {
    resource_group_name  = "example"
    storage_account_name = "example"
    container_name       = "example"
    key                  = "example.state"
    use_azuread_auth     = true
    timeout              = "60" # value in seconds
  }

References

No response

Metadata

Metadata

Assignees

Labels

acceptedThis issue has been accepted for implementation.enhancementNew feature or requesthelp wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions