You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The mongoDB cluster created through Terraform has the IP 0.0.0.0 whitelisted.
Actual Behavior
The IP does get whitelisted though Terraform returns an error in the console stating that the resource cannot be found after the mongoDB cluster has been created. This occurs every time I attempt to create the mongoDB cluster.
Debug Output
Crash Output
│ Error: error creating Project IP Access List information: couldn't find resource (21 retries)
│
│ with mongodbatlas_project_ip_access_list.applications_access_list,
│ on main.tf line 70, in resource "mongodbatlas_project_ip_access_list" "applications_access_list":
│ 70: resource "mongodbatlas_project_ip_access_list" "applications_access_list" {
│
@adrian-januzi It looks like 0.0.0.0 does not come back from API with an IP address
resource "mongodbatlas_project_ip_access_list" "applications_access_list" {
project_id = local.mongodbatlas_project_id
cidr_block = "0.0.0.0/0"
// ip_address = "0.0.0.0"
}
If I use this from a setting apply seems to apply correctly
Hi @martinstibbe. Is replacing ip_address: "0.0.0.0" with cidr_block: "0.0.0.0/0" a workaround (with a fix to come later) or is the failure intended behavior? It seems like a workaround but the issue is closed and I couldn't find a PR to address this.
For context, I work at @pulumi. Some of our customers have encountered this issue and I'm not sure if I should tell them this will be resolved later, or if we should work around the behavior.
Terraform CLI and Terraform MongoDB Atlas Provider Version
Terraform Configuration File
Steps to Reproduce
terraform init
terraform apply
Expected Behavior
The mongoDB cluster created through Terraform has the IP 0.0.0.0 whitelisted.
Actual Behavior
The IP does get whitelisted though Terraform returns an error in the console stating that the resource cannot be found after the mongoDB cluster has been created. This occurs every time I attempt to create the mongoDB cluster.
Debug Output
Crash Output
│ Error: error creating Project IP Access List information: couldn't find resource (21 retries)
│
│ with mongodbatlas_project_ip_access_list.applications_access_list,
│ on main.tf line 70, in resource "mongodbatlas_project_ip_access_list" "applications_access_list":
│ 70: resource "mongodbatlas_project_ip_access_list" "applications_access_list" {
│
Additional Context
References
Similar issue here with no resolution - #266
The text was updated successfully, but these errors were encountered: