0

`Hi folks, I am facing issue in my cicd pipline on GCP cloud which i set in github with terraform workflow. bellow error I am getting.

Run terraform plan -input=false
/home/runner/work/_temp/86fbf72d-0d05-43a8-9ea3-6c50d50b0210/terraform-bin plan -input=false
╷
│ Error: Required plugins are not installed
│ 
│ The installed provider plugins are not consistent with the packages
│ selected in the dependency lock file:
│   - registry.terraform.io/hashicorp/google: there is no package for registry.terraform.io/hashicorp/google 5.24.0 cached in .terraform/providers
│ 
│ Terraform uses external plugins to integrate with a variety of different
│ infrastructure services. To download the plugins required for this
│ configuration, run:
│   terraform init`
  • I tried these steps to resolve, but no luck*
terraform init -upgrade
Remove-Item -Path ".terraform/providers" -Recurse -Force
terraform init
2
  • What errors do terraform init give? Commented Apr 13, 2024 at 19:22
  • terraform init is not giving any error, i have setu CICD , so in stage terraform plan , I am facing error Error: Required plugins are not installed Commented Apr 14, 2024 at 7:56

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.