Hello,
I’m using terraform to manage my mongoDB Atlas.
I use MONGODB_ATLAS_PRIVATE_KEY and MONGODB_ATLAS_PUBLIC_KEY exported on the CLI.
I’m facing issues when trying to run terraform plan and terraform apply
╷
│ Error: error getting API Key’s org assigned (Get “https://cloud.mongodb.com/api/atlas/v1.0”: dial tcp: lookup cloud.mongodb.com on 192.168.1.254:53: no such host):
│
│ with module.mongodb_atlas.data.mongodbatlas_roles_org_id.organisation,
│ on .terraform/modules/mongodb_atlas/project.tf line 1, in data “mongodbatlas_roles_org_id” “organisation”:
│ 1: data “mongodbatlas_roles_org_id” “organisation” {}
│
I need to run many times cli for exported API key parameters and terraform plan or apply until I get a succeed terraform command output.
Anyone faced out something like this ?
Versions:
Terraform v1.9.7
on darwin_amd64
- provider Terraform Registry v1.9.0