Skip to content

Instantly share code, notes, and snippets.

@MahmoudDolah
Created November 11, 2021 18:55
Show Gist options
  • Save MahmoudDolah/d3950b93cb07e778ba3cebf97c89595a to your computer and use it in GitHub Desktop.
Save MahmoudDolah/d3950b93cb07e778ba3cebf97c89595a to your computer and use it in GitHub Desktop.
Terraform detected the following changes made outside of Terraform since the last "terraform apply":
# constellix_txt_record.google__domainkey_businessinsider_com_TXT has been changed
~ resource "constellix_txt_record" "google__domainkey_businessinsider_com_TXT" {
id = "14019495"
name = "google._domainkey"
# (8 unchanged attributes hidden)
+ roundrobin {
+ disable_flag = false
+ value = "v=DKIM1; k=rsa; \" \"p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAhWAFyYOxjbQjHW6W6q7KtP9HtlJylhKHoTWomJRMSmvOPPRhvvV0RCkKK+vob6oYZJxyWlru29etriWzO9BEAPyYFf0iHNOFeHRlTIpcLRvYAftPquHT5GrtN8+nU33hFlP4V1N7EEBy4KASoaCa5aAWcoJUkpTt1wFBzUHLbpFLA/yTukyfwAPHSSncSNp3gZpMaOxjbFzvYoTdO\" \"Rfp6dSPgqBTYYKMoP/cIVqWjBeYM/CbR0AD7BR8z4GYYF5NSEaAvt/NWYVVLd1Wul4R1RpqEWorDbMsBSbUYzWB+m4X1FoXIzhWXbTjIexWeXn/nWp+BF0vpj92x+ZAZvnONwIDAQAB"
}
- roundrobin {
- disable_flag = false -> null
- value = "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAhWAFyYOxjbQjHW6W6q7KtP9HtlJylhKHoTWomJRMSmvOPPRhvvV0RCkKK+vob6oYZJxyWlru29etriWzO9BEAPyYFf0iHNOFeHRlTIpcLRvYAftPquHT5GrtN8+nU33hFlP4V1N7EEBy4KASoaCa5aAWcoJUkpTt1wFBzUHLbpFLA/yTukyfwAPHSSncSNp3gZpMaOxjbFzvYoTdORfp6dSPgqBTYYKMoP/cIVqWjBeYM/CbR0AD7BR8z4GYYF5NSEaAvt/NWYVVLd1Wul4R1RpqEWorDbMsBSbUYzWB+m4X1FoXIzhWXbTjIexWeXn/nWp+BF0vpj92x+ZAZvnONwIDAQAB" -> null
}
}
# constellix_domain.businessinsider_com has been changed
~ resource "constellix_domain" "businessinsider_com" {
id = "691440"
name = "businessinsider.com"
tags = []
+ template = 0
# (4 unchanged attributes hidden)
}
Unless you have made equivalent changes to your configuration, or ignored the relevant attributes using ignore_changes, the following plan may include
actions to undo or respond to these changes.
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
+ create
~ update in-place
Terraform will perform the following actions:
# constellix_cname_record.my_businessinsider_com_CNAME will be created
+ resource "constellix_cname_record" "my_businessinsider_com_CNAME" {
+ contact_ids = (known after apply)
+ domain_id = "691440"
+ geo_location = (known after apply)
+ gtd_region = (known after apply)
+ host = "my.businessinsider.com.cdn.cloudflare.net."
+ id = (known after apply)
+ name = "my"
+ noanswer = (known after apply)
+ note = (known after apply)
+ pools = (known after apply)
+ record_failover_disable_flag = (known after apply)
+ record_failover_failover_type = (known after apply)
+ record_option = (known after apply)
+ source_type = "domains"
+ ttl = 60
+ type = "CNAME"
}
# constellix_ns_record.video_it_businessinsider_com_NS will be created
+ resource "constellix_ns_record" "video_it_businessinsider_com_NS" {
+ domain_id = "691440"
+ gtd_region = (known after apply)
+ id = (known after apply)
+ name = "video.it"
+ noanswer = (known after apply)
+ note = (known after apply)
+ source_type = "domains"
+ ttl = 14400
+ type = "NS"
+ roundrobin {
+ disable_flag = "false"
+ value = "ns-1386.awsdns-45.org."
}
+ roundrobin {
+ disable_flag = "false"
+ value = "ns-1658.awsdns-15.co.uk."
}
+ roundrobin {
+ disable_flag = "false"
+ value = "ns-462.awsdns-57.com."
}
+ roundrobin {
+ disable_flag = "false"
+ value = "ns-905.awsdns-49.net."
}
}
# constellix_txt_record.google__domainkey_businessinsider_com_TXT will be updated in-place
~ resource "constellix_txt_record" "google__domainkey_businessinsider_com_TXT" {
id = "14019495"
name = "google._domainkey"
# (8 unchanged attributes hidden)
- roundrobin {
- disable_flag = false -> null
- value = "v=DKIM1; k=rsa; \" \"p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAhWAFyYOxjbQjHW6W6q7KtP9HtlJylhKHoTWomJRMSmvOPPRhvvV0RCkKK+vob6oYZJxyWlru29etriWzO9BEAPyYFf0iHNOFeHRlTIpcLRvYAftPquHT5GrtN8+nU33hFlP4V1N7EEBy4KASoaCa5aAWcoJUkpTt1wFBzUHLbpFLA/yTukyfwAPHSSncSNp3gZpMaOxjbFzvYoTdO\" \"Rfp6dSPgqBTYYKMoP/cIVqWjBeYM/CbR0AD7BR8z4GYYF5NSEaAvt/NWYVVLd1Wul4R1RpqEWorDbMsBSbUYzWB+m4X1FoXIzhWXbTjIexWeXn/nWp+BF0vpj92x+ZAZvnONwIDAQAB" -> null
}
+ roundrobin {
+ disable_flag = false
+ value = "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAhWAFyYOxjbQjHW6W6q7KtP9HtlJylhKHoTWomJRMSmvOPPRhvvV0RCkKK+vob6oYZJxyWlru29etriWzO9BEAPyYFf0iHNOFeHRlTIpcLRvYAftPquHT5GrtN8+nU33hFlP4V1N7EEBy4KASoaCa5aAWcoJUkpTt1wFBzUHLbpFLA/yTukyfwAPHSSncSNp3gZpMaOxjbFzvYoTdORfp6dSPgqBTYYKMoP/cIVqWjBeYM/CbR0AD7BR8z4GYYF5NSEaAvt/NWYVVLd1Wul4R1RpqEWorDbMsBSbUYzWB+m4X1FoXIzhWXbTjIexWeXn/nWp+BF0vpj92x+ZAZvnONwIDAQAB"
}
}
# constellix_txt_record.txt_businessinsider_com_TXT will be created
+ resource "constellix_txt_record" "txt_businessinsider_com_TXT" {
+ domain_id = "691440"
+ gtd_region = (known after apply)
+ id = (known after apply)
+ name = "txt"
+ noanswer = (known after apply)
+ note = (known after apply)
+ parent = (known after apply)
+ parentid = (known after apply)
+ source = (known after apply)
+ source_type = "domains"
+ ttl = 60
+ type = "TXT"
+ roundrobin {
+ disable_flag = false
+ value = "dewwwamp=amp.businessinsider.de"
}
+ roundrobin {
+ disable_flag = false
+ value = "insdev=insdev.thisisinsider.com"
}
+ roundrobin {
+ disable_flag = false
+ value = "insqa=insqa.thisisinsider.com"
}
+ roundrobin {
+ disable_flag = false
+ value = "insreview=insreview.businessinsider.com"
}
+ roundrobin {
+ disable_flag = false
+ value = "inswwwamp=amp.thisisinsider.com"
}
+ roundrobin {
+ disable_flag = false
+ value = "inswwwmedia=media.thisisinsider.com"
}
+ roundrobin {
+ disable_flag = false
+ value = "ukdev=ukdev.businessinsider.com"
}
+ roundrobin {
+ disable_flag = false
+ value = "ukwww=uk.businessinsider.com"
}
+ roundrobin {
+ disable_flag = false
+ value = "ukwwwamp=amp.uk.businessinsider.com"
}
+ roundrobin {
+ disable_flag = false
+ value = "usdev=usdev.businessinsider.com"
}
+ roundrobin {
+ disable_flag = false
+ value = "usqa=mobile-usqa.businessinsider.com"
}
+ roundrobin {
+ disable_flag = false
+ value = "usqa=usqa.businessinsider.com"
}
+ roundrobin {
+ disable_flag = false
+ value = "usreview=usreview.businessinsider.com"
}
+ roundrobin {
+ disable_flag = false
+ value = "uswww=www.businessinsider.com"
}
+ roundrobin {
+ disable_flag = false
+ value = "uswwwamp=amp.businessinsider.com"
}
+ roundrobin {
+ disable_flag = false
+ value = "uswwwmedia=media.businessinsider.com"
}
}
Plan: 3 to add, 1 to change, 0 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
constellix_cname_record.my_businessinsider_com_CNAME: Creating...
constellix_ns_record.video_it_businessinsider_com_NS: Creating...
constellix_txt_record.google__domainkey_businessinsider_com_TXT: Modifying... [id=14019495]
constellix_txt_record.txt_businessinsider_com_TXT: Creating...
│ Error: Plugin did not respond
│ with constellix_cname_record.my_businessinsider_com_CNAME,
│ on businessinsider.tf line 416, in resource "constellix_cname_record" "my_businessinsider_com_CNAME":
│ 416: resource "constellix_cname_record" "my_businessinsider_com_CNAME" {
│ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ApplyResourceChange call. The plugin logs may contain more details.
│ Error: "NS" record with name "video.it" in GTD Region "Default" of domain "businessinsider.com" already exists
│ with constellix_ns_record.video_it_businessinsider_com_NS,
│ on businessinsider.tf line 2474, in resource "constellix_ns_record" "video_it_businessinsider_com_NS":
│ 2474: resource "constellix_ns_record" "video_it_businessinsider_com_NS" {
│ Error: Contents are identical
│ with constellix_txt_record.google__domainkey_businessinsider_com_TXT,
│ on businessinsider.tf line 2713, in resource "constellix_txt_record" "google__domainkey_businessinsider_com_TXT":
│ 2713: resource "constellix_txt_record" "google__domainkey_businessinsider_com_TXT" {
│ Error: "TXT" record with name "txt" in GTD Region "Default" of domain "businessinsider.com" already exists
│ with constellix_txt_record.txt_businessinsider_com_TXT,
│ on businessinsider.tf line 2823, in resource "constellix_txt_record" "txt_businessinsider_com_TXT":
│ 2823: resource "constellix_txt_record" "txt_businessinsider_com_TXT" {
Stack trace from the terraform-provider-constellix_v0.3.11 plugin:
panic: interface conversion: interface {} is nil, not []interface {}
goroutine 97 [running]:
github.com/Constellix/constellix-go-client/client.checkForErrors(0xc0003cc000, 0x1, 0x1)
github.com/Constellix/constellix-go-client@v1.0.26/client/client.go:197 +0x435
github.com/Constellix/constellix-go-client/client.(*Client).Save(0xc000186280, 0x1c271c0, 0xc0004fa0b0, 0xc0007cc280, 0x1f, 0x1c5c1b6, 0x1, 0xc0001900d8)
github.com/Constellix/constellix-go-client@v1.0.26/client/client.go:180 +0x396
github.com/terraform-providers/terraform-provider-constellix/constellix.resourceConstellixCNameRecordCreate(0xc0002a67e0, 0x1bb1fa0, 0xc000186280, 0x2, 0x2615500)
github.com/terraform-providers/terraform-provider-constellix/constellix/resource_constellix_cname_record.go:343 +0xd0a
github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*Resource).Apply(0xc0004d7050, 0xc0005323c0, 0xc0002745a0, 0x1bb1fa0, 0xc000186280, 0x1b14c01, 0xc000110ee8, 0xc000325a10)
github.com/hashicorp/terraform-plugin-sdk@v1.15.0/helper/schema/resource.go:310 +0x365
github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*Provider).Apply(0xc0002aa000, 0xc00024fa10, 0xc0005323c0, 0xc0002745a0, 0xc000204bc8, 0xc00081e050, 0x1b16860)
github.com/hashicorp/terraform-plugin-sdk@v1.15.0/helper/schema/provider.go:294 +0x99
github.com/hashicorp/terraform-plugin-sdk/internal/helper/plugin.(*GRPCProviderServer).ApplyResourceChange(0xc00000e008, 0x1ebb960, 0xc000324330, 0xc0002a6000, 0xc00000e008, 0xc000324330, 0xc00020db78)
github.com/hashicorp/terraform-plugin-sdk@v1.15.0/internal/helper/plugin/grpc_provider.go:885 +0x8b4
github.com/hashicorp/terraform-plugin-sdk/internal/tfplugin5._Provider_ApplyResourceChange_Handler(0x1c22540, 0xc00000e008, 0x1ebb960, 0xc000324330, 0xc00080c6c0, 0x0, 0x1ebb960, 0xc000324330, 0xc0003dc2c0, 0x284)
github.com/hashicorp/terraform-plugin-sdk@v1.15.0/internal/tfplugin5/tfplugin5.pb.go:3305 +0x217
google.golang.org/grpc.(*Server).processUnaryRPC(0xc000702900, 0x1ec5ce0, 0xc000703980, 0xc0003c6000, 0xc0006d5470, 0x25db5a0, 0x0, 0x0, 0x0)
google.golang.org/grpc@v1.27.1/server.go:1024 +0x501
google.golang.org/grpc.(*Server).handleStream(0xc000702900, 0x1ec5ce0, 0xc000703980, 0xc0003c6000, 0x0)
google.golang.org/grpc@v1.27.1/server.go:1313 +0xd3d
google.golang.org/grpc.(*Server).serveStreams.func1.1(0xc00003a5e0, 0xc000702900, 0x1ec5ce0, 0xc000703980, 0xc0003c6000)
google.golang.org/grpc@v1.27.1/server.go:722 +0xa1
created by google.golang.org/grpc.(*Server).serveStreams.func1
google.golang.org/grpc@v1.27.1/server.go:720 +0xa1
Error: The terraform-provider-constellix_v0.3.11 plugin crashed!
This is always indicative of a bug within the plugin. It would be immensely
helpful if you could report the crash with the plugin's maintainers so that it
can be fixed. The output above should help diagnose the issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment