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

When trying to overwrite existing validation record clodflare provider cannot replace it #3

Open
snovikov opened this issue Nov 22, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@snovikov
Copy link
Contributor

Exact error message:

module.this.cloudflare_record.validation[0]: Creating...
module.this.cloudflare_record.validation[0]: Still creating... [10s elapsed]
module.this.cloudflare_record.validation[0]: Still creating... [20s elapsed]
module.this.cloudflare_record.validation[0]: Still creating... [30s elapsed]
╷
│ Error: attempted to override existing record however didn't find an exact match
│ 
│   with module.this.cloudflare_record.validation[0],
│   on ../../main.tf line 34, in resource "cloudflare_record" "validation":
│   34: resource "cloudflare_record" "validation" {
│ 
╵
@snovikov snovikov added the bug Something isn't working label Nov 22, 2021
@jhelbling
Copy link

`resource "cloudflare_record" "validation" {
name = var.validation_name
value = var.validation_value
type = "TXT"
proxied = false
ttl = 300

zone_id = var.cloudflare_zone_id

Use 'create_before_destroy' to avoid issues with existing records

lifecycle {
create_before_destroy = true
}
}`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants