Coder Social home page Coder Social logo

Comments (2)

jmtx1020 avatar jmtx1020 commented on August 16, 2024 1

Any chance you found a solution? @dolvany

I am also experiencing the above issue but with version 2.0.5 of the plugin and terraform version 1.4.6, I thought it'd be helpful for me to comment and provide some sample code:

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"
  }
}

Running a plan will show that it needs to remove the filter chain, applying will succeed. Rerun plan and it will show that it still needs to delete.

You can add as many filters as you like, however deleting them never works. You can see the filters are still there in the ns1 webstie.

from terraform-provider-ns1.

pburrows-ns1 avatar pburrows-ns1 commented on August 16, 2024

@dolvany / @jmtx1020
Please try provider version 2.0.8

from terraform-provider-ns1.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.