Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: The terraform-provider-ns1_v2.4.5 plugin crashed! #334

Open
AlxCloudRl opened this issue Oct 29, 2024 · 0 comments · May be fixed by #336
Open

Error: The terraform-provider-ns1_v2.4.5 plugin crashed! #334

AlxCloudRl opened this issue Oct 29, 2024 · 0 comments · May be fixed by #336
Assignees

Comments

@AlxCloudRl
Copy link

Hello,

We are facing an issue while trying to add 118 records (CNAME, A, TXT) inside the NS1 API. The provider crash. We then tried to rate-limit the provider to 2, to no avail.

Terraform Version

Terraform v1.9.6
on linux_amd64

Affected Resource(s)

  • ns1_record

If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.

Terraform Configuration Files

data "ns1_zone" "main" {
  zone = var.ns1_zone_name
}

// Create A records
resource "ns1_record" "a_records" {
  for_each = var.a_records

  zone   = data.ns1_zone.main.zone
  domain = "${each.key}.${data.ns1_zone.main.zone}"
  type   = "A"
  ttl    = each.value.ttl

  answers {
    answer = each.value.a_record
  }
}

// Create CNAME records
resource "ns1_record" "cname_records" {
  for_each = var.cname_records

  zone   = data.ns1_zone.main.zone
  domain = "${each.key}.${data.ns1_zone.main.zone}"
  type   = "CNAME"
  ttl    = each.value.ttl

  answers {
    answer = each.value.cname_record
  }
}

// Create TXT records
resource "ns1_record" "txt_records" {
  for_each = var.txt_records

  zone   = data.ns1_zone.main.zone
  domain = "${each.key}.${data.ns1_zone.main.zone}"
  type   = "TXT"
  ttl    = each.value.ttl

  answers {
    answer = each.value.txt_record
  }
}

The plan is successful, with 118 records to add (that's expected).

Debug Output

https://gist.github.com/AlxCloudRl/9191f1ad72298c2143ad8e622111915e

Expected Behavior

118 records should have been added, successfully.

Actual Behavior

The provider crash.

@fformica fformica self-assigned this Nov 27, 2024
fformica added a commit that referenced this issue Nov 28, 2024
@fformica fformica linked a pull request Nov 28, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants