This message was deleted.
# atlantis-community
s
This message was deleted.
p
that might be because in your local you had all the providers installed and a lockfile
did you committed the lockfile?
j
uhmmm, no
i have local the terraform.lock.hcl
what should i do with that file?
p
you need cleanup your local and see if the init will work
j
Now the error changes
Copy code
Error: Required plugins are not installed
│ 
│ The installed provider plugins are not consistent with the packages
│ selected in the dependency lock file:
│   - <http://registry.terraform.io/hashicorp/kubernetes|registry.terraform.io/hashicorp/kubernetes>: the cached package for <http://registry.terraform.io/hashicorp/kubernetes|registry.terraform.io/hashicorp/kubernetes> 2.23.0 (in .terraform/providers) does not match any of the checksums recorded in the dependency lock file
│ 
│ Terraform uses external plugins to integrate with a variety of different
│ infrastructure services. You must install the required plugins before
│ running Terraform operations.
i’m trying changes in other GCP project, delete the lock file and the errores in this specific project is this:
Copy code
/secretmanager.googleapis.com: googleapi: Error 403: The caller does not have permission, forbidden
What role the SA need?
p
usually admin if you want Atlantis able to create all resources
w
maybe add the required version for
google-beta
provider as well.
Copy code
terraform {
  required_providers {
    google = {
      source = "hashicorp/google"
      version = "4.83.0"
    }
    google-beta = {
      source = "hashicorp/google-beta"
      version = "4.83.0"
    }
  }
}
also watch out that you don’t accidentally do this somewhere (not that I’ve ever done this 🙊)
Copy code
google-beta = {
      source = "hashicorp/google"
      version = "4.83.0"
    }