cloudnloud / weekly-cloud-engineer-interview-program

12-week-cloud-engineer-program
34 stars 3 forks source link

Terraform init does not download providers #19

Open Vadiraj-Puranik opened 1 year ago

Vadiraj-Puranik commented 1 year ago

Hi Team I have main.tf as below provider "aws" { region = us-east-1 access_key = "XXXXX" -> X here is my secret key and access key secret_key = "XXXXX" }

resource "aws_s3_bucket" "mys3bucket" { bucket = "mybucket" }

When I tried to run terraform init I get below output :

PS C:\Users\vapuranik\Desktop\Learning\Terraform> terraform init

Initializing the backend...

Initializing provider plugins...

Terraform has been successfully initialized!

You may now begin working with Terraform. Try running "terraform plan" to see  
any changes that are required for your infrastructure. All Terraform commands  
should now work.

If you ever set or change modules or backend configuration for Terraform,      
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary

But providers are not downloaded , can someone help in identifying what is the issue here ? image

yeofrancis commented 1 year ago

Your provider plugins initializing was successful. What are you looking or expecting ?

Vadiraj-Puranik commented 1 year ago

@yeofrancis
1:When I run terraform plan or terraform apply it is showing no changes in infrastructure(though I have new S3 Bucket to be added) 2:If provider plugins initialization was successful , where is .terraform/providers folder ? It should be available right if initialization was successful

yeofrancis commented 1 year ago

@Vadiraj-Puranik why don't you set up a github repo on this and we shall work on to resolve it .