---
title: "Discussion on \"Terraform reports the error \"Failed to query available provider packages\"\" | Hashnode"
description: "Discussion on \"Terraform reports the error \"Failed to query available provider packages\"\". This error normally occurs when you change the provider's version. To fix this issue use terraform init -upgrade instead of terraform init"
url: "https://hashnode.com/posts/terraform-reports-the-error-failed-to-query-available-provider-packages/66e8987b9da09f90f6531850"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Terraform reports the error "Failed to query available provider packages"](https://imohit14.hashnode.dev/terraform-reports-the-error-failed-to-query-available-provider-packages?utm_source=hashnode&utm_medium=feed)

This error normally occurs when you change the provider's version. To fix this issue use terraform init -upgrade instead of terraform init

Sep 16, 2024 · 1 min read · imohit14.hashnode.dev  
Updated Sep 21, 2024  
Read the article

-   [#terraform](https://hashnode.com/tag/terraform)
-   [#terraforminit](https://hashnode.com/tag/terraforminit)
-   [#terraform-state](https://hashnode.com/tag/terraform-state)
-   [#terraform-cloud](https://hashnode.com/tag/terraform-cloud)

## Written by

[Mohit Kumar](https://hashnode.com/@Imohit14)

@Imohit14

  
[View profile](https://hashnode.com/@Imohit14)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
