# terraform apply
[...]
# hcloud_rdns.cloud_ftp_ipv4[0] will be created
+ resource "hcloud_rdns" "cloud_ftp_ipv4" {
+ dns_ptr = "ftp1.ftp.cloud2.[..]"
+ id = (known after apply)
+ server_id = 48738290
# (1 unchanged attribute hidden)
}
# hcloud_rdns.cloud_ftp_ipv6[0] will be created
+ resource "hcloud_rdns" "cloud_ftp_ipv6" {
+ dns_ptr = "ftp1.ftp.cloud2.[..]"
+ id = (known after apply)
+ ip_address = "2a01:4f8:[..]"
+ server_id = 48738290
}
# hcloud_server.cloud_ftp[0] will be updated in-place
~ resource "hcloud_server" "cloud_ftp" {
id = "48738290"
name = "ftp1.ftp.cloud2.[..]"
# (22 unchanged attributes hidden)
- public_net {
- ipv4 = 0 -> null
- ipv4_enabled = false -> null
- ipv6 = 0 -> null
- ipv6_enabled = true -> null
}
+ public_net {
+ ipv4 = (known after apply)
+ ipv4_enabled = true
+ ipv6 = (known after apply)
+ ipv6_enabled = true
}
# (1 unchanged block hidden)
}
[...]
Plan: 3 to add, 3 to change, 1 to destroy.
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
[...]
hcloud_server.cloud_ftp[0]: Modifying... [id=48738290]
hcloud_server.cloud_ftp[0]: Still modifying... [id=48738290, 10s elapsed]
hcloud_server.cloud_ftp[0]: Modifications complete after 16s [id=48738290]
hcloud_rdns.cloud_ftp_ipv6[0]: Creating...
hcloud_rdns.cloud_ftp_ipv6[0]: Creation complete after 2s [id=s-48738290-2a01:4f8:c17:62bf::1]
╷
│ Error: Provider produced inconsistent final plan
│
│ When expanding the plan for hcloud_rdns.cloud_ftp_ipv4[0] to include new values learned so far during apply, provider "registry.terraform.io/hetznercloud/hcloud" produced an invalid new value for .ip_address: was cty.StringVal(""), but now cty.StringVal("157.90.248.65").
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
╵
What did you expect to happen?
I expect the new IPv4 added and the reverse DNS entry to be updated without error.
What happened?
What did you expect to happen?
I expect the new IPv4 added and the reverse DNS entry to be updated without error.
Please provide a minimal working example
steps to reproduce:
terraform init
terraform apply
ipv4_enabled = true
in servers public_netterraform apply