Running into an issue where I successfully apply a terraform plan to create CNAME records in DYN. However when I rerun terraform plan again, I expected that there be zero changes. Instead, I get the same 3 records I created in the terrform plan.
The remote state is working as I have a cloudflare and fastly configs. These correctly state no changes.
So to sum it up, I have 3 tf configs, one for dyn, cloudflare, and fastly. The remote state config is in fastly config. (there doesn't seem to be documentation on where or if it matters where teh remote state config needs to be put, if there are multiple files.)
Terraform Version
Terraform v0.9.11
Affected Resource(s)
Please list the resources as a list, for example:
resource "dyn_record" "demoz"
resource "dyn_record" "demozz"
resource "dyn_record" "demozzz"
If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.
Terraform Configuration Files
variable "dyn_user" {
}
variable "dyn_api" {
}
provider "dyn" {
customer_name = "<some company>"
username = "${var.dyn_user}"
password = "${var.dyn_api}"
}
resource "dyn_record" "demoz" {
zone = "advance-dev.com"
name = "demoz"
#value = "demoz.advance-dev.com.cdn.cloudflare.net"
value = "nonssl.us-eu.fastly.net"
type = "CNAME"
ttl = "60"
}
resource "dyn_record" "demozz" {
zone = "advance-dev.com"
name = "demozz"
#value = "demoz.advance-dev.com.cdn.cloudflare.net"
value = "nonssl.us-eu.fastly.net"
type = "CNAME"
ttl = "60"
}
resource "dyn_record" "demozzz" {
zone = "advance-dev.com"
name = "demozzz"
#value = "demoz.advance-dev.com.cdn.cloudflare.net"
value = "nonssl.us-eu.fastly.net"
type = "CNAME"
ttl = "60"
}
Expected Behavior
Terraform plan should say there should not be anything to change.
Actual Behavior
Terraform plan says there are DYN records to change.
Hi there,
Running into an issue where I successfully apply a terraform plan to create CNAME records in DYN. However when I rerun terraform plan again, I expected that there be zero changes. Instead, I get the same 3 records I created in the terrform plan.
The remote state is working as I have a cloudflare and fastly configs. These correctly state no changes.
So to sum it up, I have 3 tf configs, one for dyn, cloudflare, and fastly. The remote state config is in fastly config. (there doesn't seem to be documentation on where or if it matters where teh remote state config needs to be put, if there are multiple files.)
Terraform Version
Terraform v0.9.11
Affected Resource(s)
Please list the resources as a list, for example: resource "dyn_record" "demoz" resource "dyn_record" "demozz" resource "dyn_record" "demozzz"
If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.
Terraform Configuration Files
Expected Behavior
Terraform plan should say there should not be anything to change.
Actual Behavior
Terraform plan says there are DYN records to change.
Steps to Reproduce
Brand new env
terraform plan