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

Unable to delete filters on ns1 records #340

Closed
1 task done
jmtx1020 opened this issue Aug 11, 2023 · 2 comments
Closed
1 task done

Unable to delete filters on ns1 records #340

jmtx1020 opened this issue Aug 11, 2023 · 2 comments
Labels

Comments

@jmtx1020
Copy link

jmtx1020 commented Aug 11, 2023

Terraform CLI and Provider Versions

Terraform: v1.4.6
Provider Version: 2.0.5

Terraform Configuration

resource "ns1_record" "test1" {
  zone   = var.zone
  domain = "test1.${var.zone}"
  type   = "A"
  ttl    = 3600
  answers {
    answer = "122.251.63.104"
    meta = {
      "latitude"  = "23"
      "longitude" = "-107"
    }
    region = "REGION1"
  }
  answers {
    answer = "123.231.63.103"
    meta = {
      "latitude"  = "55"
      "longitude" = "-107"
    }
    region = "REGION2"
  }

  # filters {
  #   config   = {}
  #   disabled = false
  #   filter   = "geotarget_latlong"
  # }
  # filters {
  #   config   = {}
  #   disabled = false
  #   filter   = "select_first_region"
  # }
  # filters {
  #   config = {
  #     "sticky_by_network" = "0"
  #   }
  #   disabled = false
  #   filter   = "sticky"
  # }
  # filters {
  #   config = {
  #     "N" = "1"
  #   }
  #   disabled = false
  #   filter   = "select_first_n"
  # }

  regions {
    meta = {}
    name = "REGION1"
  }
  regions {
    meta = {}
    name = "REGION2"
  }
}

Expected Behavior

Remove filters from ns1 record.

Actual Behavior

In the plan, it shows it needs to be removed. During the apply it says it succeeds.
If you check the console, it won't be removed. The filters will still be there. You can rerun as much as you want, each time it'll plan to remove and remove during apply but the ns1 website will never show it's been updated.

Steps to Reproduce

  1. terraform apply

How much impact is this issue causing?

High

Logs

No response

Additional Information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@jmtx1020 jmtx1020 added the bug label Aug 11, 2023
@bflad
Copy link
Contributor

bflad commented Aug 11, 2023

Hi @jmtx1020 👋 Thank you for raising this issue and sorry you are running into trouble here.

From your given Terraform configuration:

resource "ns1_record" "test1" {

It looks like you are raising a bug report about the ns1-terraform/ns1 provider, which contains the ns1_record resource, while this repository issue tracker is for the hashicorp/dns provider. If you browse the Registry page linked for the ns1 provider, there's a link to their GitHub repository where you can file this bug report. Since it doesn't appear that this issue is actionable in this provider, I'm going to close this issue.

@bflad bflad closed this as not planned Won't fix, can't repro, duplicate, stale Aug 11, 2023
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants