Hi
hello sorry to bump this old topic but i have a similar issue. I am trying to create 2-3 instances so when i plan it some times gives me the details and some times i get the error message
but when i tried to validate i get the below error message
c:\terraform>terraform validate
Error: 1 error(s) occurred:
* provider.aws: no suitable version installed
version requirements: "(any version)"
versions installed: none
can some one guide me what do i need to do
Hi @sudlo,
from what you're telling us it looks like you don't have any providers installed. Providers (basically 'libraries' so that Terraform understands various APIs) are no longer bundled with Terraform. This means you can upgrade Terraform while sticking to an older provider version or vice versa. It also means Terraform will not understand your code if no provider is present.
Fortunately you can easily fix this by running terraform init. This command sets up Terraform so that it can apply your code. It'll download providers and modules where necessary. You need to run this command at least once.
@bennycornelissen thank you for your response i did , but i am getting the same error..
Could you post the exact code you're trying to run and the output of your terminal? Also, which version of Terraform are you using, and on what operating system?
I faced the same issue and terraform init did fix my problem.
Thanks
Hello! :robot:
We use GitHub issues for tracking bugs and enhancements rather than for questions. While we can sometimes help with certain simple problems here, it's better to use the community forum where there are more people ready to help. The GitHub issues here are monitored only by our few core maintainers.
Since this issue doesn't represent a specific bug or feature request, I'm going to close it. Please do feel free to ask your question in the community forum. Thanks!
Sounds like a bug @hashibot ... could probably be a better error message here.
I'm going to lock this issue because it has been closed for _30 days_ โณ. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Most helpful comment
I faced the same issue and
terraform initdid fix my problem.Thanks