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

Terraform Always Plans Changes for Unmodified INWX Record" #21

Closed
sowinski opened this issue Nov 9, 2023 · 2 comments
Closed

Terraform Always Plans Changes for Unmodified INWX Record" #21

sowinski opened this issue Nov 9, 2023 · 2 comments
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@sowinski
Copy link

sowinski commented Nov 9, 2023

Hi,

I don't undestand why terraform is always trying to make change. Even if I don't change anything.

This is my code.

terraform {
  required_providers {
    inwx = {
      source = "inwx/inwx"
      version = ">= 1.0.0"
    }
  }
}

provider "inwx" {
  api_url = "https://api.domrobot.com/jsonrpc/"
}

resource "inwx_nameserver_record" "a_records" {
  domain    = "example.com"
  name      = "www"
  type      = "A"
  content   = "12.12.12.12"
  ttl       = 3600
}

If I run apply and except the changes. It works, and I can see the new entry in the webinterface of INWX.

If I rerun the comand without any changes. Terraform is trying to change something again.
I can rerun it 10 times and it will always detect changes.

Why? Is this a bug?

@kimdre
Copy link

kimdre commented Nov 13, 2023

Can you show the terraform output of these changes?

@kimdre
Copy link

kimdre commented Nov 13, 2023

Nevermind, your issue is that you have to specify the name as a fqdn. So
name = "www" must be name = "www.example.com"

The INWX provider is not good designed in this matter.

@fsoederhuyzen fsoederhuyzen added bug Something isn't working documentation Improvements or additions to documentation labels Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants