Giter VIP home page Giter VIP logo

Comments (8)

punkdata avatar punkdata commented on June 17, 2024 1

Just want to give you some props for developing this terraform provider. It's a great plugin! 👍

from terraform-provider-namecheap.

adamdecaf avatar adamdecaf commented on June 17, 2024

Can you paste the terraform config?

from terraform-provider-namecheap.

nikolaymazurenko avatar nikolaymazurenko commented on June 17, 2024

My config with some censoring:

provider "namecheap" {
  username    = "blabla"
  api_user    = "blabla"
  token       = "******************************************"
  ip          = "my.ip.add.ress"
  use_sandbox = "false"
}

resource "namecheap_record" "www-example-com" {
   name    = "www"
    domain  = "badbadblabla.space"
    type    = "CNAME"
    ttl     = "60"
    address = "elb.badbadblabla.space"
}

And what I have after this in terraform.tfstate:

    "version": 3,
    "terraform_version": "0.11.8",
    "serial": 1,
    "lineage": "834da203-b1a4-e8df-4d20-db22469a49f4",
    "modules": [
        {
            "path": [
                "root"
            ],
            "outputs": {},
            "resources": {
                "namecheap_record.www-example-com": {
                    "type": "namecheap_record",
                    "depends_on": [],
                    "primary": {
                        "id": "2057187105",
                        "attributes": {
                            "address": "elb.badbadblabla.space",
                            "domain": "badbadblabla.space",
                            "id": "2057187105",
                            "mx_pref": "10",
                            "name": "www",
                            "ttl": "60",
                            "type": "CNAME"
                        },
                        "meta": {},
                        "tainted": false
                    },
                    "deposed": [],
                    "provider": "provider.namecheap"
                }
            },
            "depends_on": []
        }
    ]
}

So, the record had been added to namecheap but I got the error and I couldn't do anything with the record after that by terraform. Only if I delete tfstate file I can add or change the record again.

from terraform-provider-namecheap.

adamdecaf avatar adamdecaf commented on June 17, 2024

Was this a one time thing? Can you perform multiple updates (in a row) to the record now?

Looking through the terraform configs which uses this I noticed my address values have a trailing .. I forget if the provider/library adds that automatically if left off (or if it matters to namecheap).

address = "foo.example.com."

from terraform-provider-namecheap.

adamdecaf avatar adamdecaf commented on June 17, 2024

I updated the error messages a bit on master. If you're building from source bfa6b0a updates that.

from terraform-provider-namecheap.

adamdecaf avatar adamdecaf commented on June 17, 2024

@nikolaymazurenko did you need help figuring this out still?

@punkdata Thanks!

from terraform-provider-namecheap.

nikolaymazurenko avatar nikolaymazurenko commented on June 17, 2024

@adamdecaf, thank you very much for this module! Trailing dot resolved my problem. Excellent work!

from terraform-provider-namecheap.

adamdecaf avatar adamdecaf commented on June 17, 2024

Awesome! Please open more bugs if you find them!

from terraform-provider-namecheap.

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.