Trying to get Terraform to download the AWS plugins, but when running terraform init
I just get the below
Initializing the backend...
Initializing provider plugins...
Terraform has been successfully initialized!
No indication that provider plugin has been installed. I’ve tried this on both Windows 11 and Ubuntu Linux using VSCode
Ran terraform init
with this in main.tf file.
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.0"
}
}
}
provider "aws" {
region = "us-east-1"
}
Running terraform provider
shows nothing installed. Not seeing any hidden .terraform
config file either in current working directory.
UPDATE
Ran TF_LOG=DEBUG terraform init
2024-12-17T14:43:54.616-0600 [INFO] Terraform version: 1.10.1
2024-12-17T14:43:54.616-0600 [DEBUG] using github.com/hashicorp/go-tfe v1.70.0
2024-12-17T14:43:54.616-0600 [DEBUG] using github.com/hashicorp/hcl/v2 v2.23.0
2024-12-17T14:43:54.616-0600 [DEBUG] using github.com/hashicorp/terraform-svchost v0.1.1
2024-12-17T14:43:54.616-0600 [DEBUG] using github.com/zclconf/go-cty v1.15.1-0.20241111215639-63279be090d7
2024-12-17T14:43:54.616-0600 [INFO] Go runtime version: go1.23.3
2024-12-17T14:43:54.616-0600 [INFO] CLI args: []string{"terraform", "init"}
2024-12-17T14:43:54.617-0600 [DEBUG] Attempting to open CLI config file: /home/cody/.terraformrc
2024-12-17T14:43:54.617-0600 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2024-12-17T14:43:54.617-0600 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2024-12-17T14:43:54.617-0600 [DEBUG] ignoring non-existing provider search directory /home/cody/.terraform.d/plugins
2024-12-17T14:43:54.617-0600 [DEBUG] ignoring non-existing provider search directory /home/cody/.local/share/terraform/plugins
2024-12-17T14:43:54.617-0600 [DEBUG] ignoring non-existing provider search directory /usr/share/ubuntu/terraform/plugins
2024-12-17T14:43:54.617-0600 [DEBUG] ignoring non-existing provider search directory /usr/share/gnome/terraform/plugins
2024-12-17T14:43:54.617-0600 [DEBUG] ignoring non-existing provider search directory /home/cody/.local/share/flatpak/exports/share/terraform/plugins
2024-12-17T14:43:54.617-0600 [DEBUG] ignoring non-existing provider search directory /var/lib/flatpak/exports/share/terraform/plugins
2024-12-17T14:43:54.617-0600 [DEBUG] ignoring non-existing provider search directory /usr/local/share/terraform/plugins
2024-12-17T14:43:54.617-0600 [DEBUG] ignoring non-existing provider search directory /usr/share/terraform/plugins
2024-12-17T14:43:54.617-0600 [DEBUG] ignoring non-existing provider search directory /var/lib/snapd/desktop/terraform/plugins
2024-12-17T14:43:54.617-0600 [INFO] CLI command args: []string{"init"}
Initializing the backend...
2024-12-17T14:43:54.617-0600 [DEBUG] checking for provisioner in "."
2024-12-17T14:43:54.617-0600 [DEBUG] checking for provisioner in "/usr/local/bin"
Initializing provider plugins...
Cody Lee is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
9
The issue looks to be caused by file permissions and file ownership. VScode workspace folder was originally created in Ubuntu Documents folder. Creating a separate folder in Home space fixed the issue
Cody Lee is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.