Closed RaniAgus closed 1 month ago
Thanks for opening this issue! Please make sure you've followed our guidelines when opening the issue. In short, to help us reproduce the issue we need:
The ticket CLOUDP-251134 was created for internal tracking.
Nevermind! It works after replacing:
resource "mongodbatlas_project_ip_access_list" "ip" {
project_id = mongodbatlas_project.project.id
ip_address = "0.0.0.0"
comment = "IP Address for accessing the cluster"
}
With:
resource "mongodbatlas_project_ip_access_list" "ip" {
project_id = mongodbatlas_project.project.id
cidr_block = "0.0.0.0/0"
comment = "CIDR Block for accessing the cluster"
}
Is there an existing issue for this?
Provider Version
~> 1.0
Terraform Version
v1.8.4
Terraform Edition
Terraform Open Source (OSS)
Current Behavior
I know this isn't production-ready, but I wanted to try out Terraform + MongoDB for an university project and tried to allow all IP addresses to access the project I've created in MongoDB Atlas.
It is applied correctly, however, terraform throws a "Provider produced inconsistent result after apply" error saying that the allowed IP address is an empty string.
Also tried replacing the IP value with an empty string, but it throws an "Invalid Attribute Value" error with this message: "Attribute ip_address string value must be defined as a valid IP Address., got: "
Terraform configuration to reproduce the issue
Steps To Reproduce
terraform apply
terraform.tvars
file too)yes
Logs
Code of Conduct