Closed danscarf closed 2 months ago
The dependency conflict is from the tfc_agent_gke module.
This depends on google-beta versions >= 5.6.0, which creates a conflict with several other dependencies of this module which constrain the version below 5.0.0.
My workaround was to comment out the module definition, as the init pulls down the modules even if enable_tfc_cloud_agents = false
.
# module "tfc_agent_gke" {
# source = "./modules/tfc-agent-gke"
# count = var.enable_tfc_cloud_agents == true ? 1 : 0
# project_id = module.tfc_cicd.project_id
# project_number = module.tfc_cicd.project_number
# tfc_agent_token = tfe_agent_token.tfc_agent_token[0].token
# create_service_account = false
# service_account_email = google_service_account.terraform-env-sa["bootstrap"].email
# service_account_id = google_service_account.terraform-env-sa["bootstrap"].id
# //If you are using Terraform Cloud Agents, un-comment this block after the first apply according README instructions
# # providers = {
# # kubernetes = kubernetes
# # }
# }
Also, there hasn't been any activity on this issue for about a week. Did I miss a step in filing the issue? Thank you!
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days
@apeabody Can you review and merge https://github.com/GoogleCloudPlatform/terraform-google-tf-cloud-agents/pull/24 ? We should be able to close this issue once that is complete
TL;DR
terraform init
fails with conflicting module version requirementsExpected behavior
Observed behavior
Terraform Configuration
I only modified the terraform.tfvars file and can't include those sensitive values.
Terraform Version
Additional information
output of
terraform providers
command: