Skip to content

Instantly share code, notes, and snippets.

@lensbart
Created October 13, 2024 22:20
Show Gist options
  • Select an option

  • Save lensbart/55dc9fef8e2b0223a1654aa6076225f9 to your computer and use it in GitHub Desktop.

Select an option

Save lensbart/55dc9fef8e2b0223a1654aa6076225f9 to your computer and use it in GitHub Desktop.
% terraform apply -auto-approve
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with
the following symbols:
+ create
Terraform will perform the following actions:
# cloudflare_record.www will be created
+ resource "cloudflare_record" "www" {
+ allow_overwrite = false
+ content = "185.94.230.82"
+ created_on = (known after apply)
+ hostname = (known after apply)
+ id = (known after apply)
+ metadata = (known after apply)
+ modified_on = (known after apply)
+ name = "www"
+ proxiable = (known after apply)
+ proxied = true
+ ttl = (known after apply)
+ type = "A"
+ value = (known after apply)
+ zone_id = (known after apply)
}
# cloudflare_zone.mydomain will be created
+ resource "cloudflare_zone" "mydomain" {
+ account_id = "5d52775a19c9cef6c802962db2af3c67"
+ id = (known after apply)
+ jump_start = false
+ meta = (known after apply)
+ name_servers = (known after apply)
+ paused = false
+ plan = "free"
+ status = (known after apply)
+ type = "full"
+ vanity_name_servers = (known after apply)
+ verification_key = (known after apply)
+ zone = "mydomain.com"
}
Plan: 2 to add, 0 to change, 0 to destroy.
cloudflare_zone.mydomain: Creating...
cloudflare_zone.mydomain: Creation complete after 5s [id=79bac8e6a58a337c7d31d7cbe38c8006]
cloudflare_record.www: Creating...
cloudflare_record.www: Still creating... [10s elapsed]
cloudflare_record.www: Still creating... [20s elapsed]
cloudflare_record.www: Still creating... [30s elapsed]
│ Error: expected DNS record to not already be present but already exists
│ with cloudflare_record.www,
│ on cloudflare.tf line 14, in resource "cloudflare_record" "www":
│ 14: resource "cloudflare_record" "www" {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment