Code Monkey home page Code Monkey logo

Comments (5)

garrettgalow avatar garrettgalow commented on May 11, 2024 1

I can repro, so we should be able to figure out what the issue is. Thanks for the report

from terraform-provider-cloudflare.

patryk avatar patryk commented on May 11, 2024

It works fine for me. Could you send a trace log? https://www.terraform.io/docs/internals/debugging.html

from terraform-provider-cloudflare.

maetthu avatar maetthu commented on May 11, 2024

@patryk Sure, here you are:

  1. I created following record:
provider "cloudflare" {
  api_client_logging = true

  version = "~> 1.1.0"
}

resource "cloudflare_record" "blubber-a" {
  domain  = "gameswelt.de"
  name    = "blubber"
  type    = "A"
  value   = "1.1.1.1"
  ttl     = 1
  proxied = "true"
}

With following apply output:

An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  + cloudflare_record.blubber-a
      id:          <computed>
      created_on:  <computed>
      domain:      "gameswelt.de"
      hostname:    <computed>
      metadata.%:  <computed>
      modified_on: <computed>
      name:        "blubber"
      proxiable:   <computed>
      proxied:     "true"
      ttl:         "1"
      type:        "A"
      value:       "1.1.1.1"
      zone_id:     <computed>


Plan: 1 to add, 0 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

cloudflare_record.blubber-a: Creating...
  created_on:  "" => "<computed>"
  domain:      "" => "gameswelt.de"
  hostname:    "" => "<computed>"
  metadata.%:  "" => "<computed>"
  modified_on: "" => "<computed>"
  name:        "" => "blubber"
  proxiable:   "" => "<computed>"
  proxied:     "" => "true"
  ttl:         "" => "1"
  type:        "" => "A"
  value:       "" => "1.1.1.1"
  zone_id:     "" => "<computed>"
cloudflare_record.blubber-a: Creation complete after 1s (ID: 0793c4efc5643411bf63bc01ef5f60fb)

Corresponding trace:
terraform-cloudflare-create.log

  1. Changed proxied from true to false
provider "cloudflare" {
  api_client_logging = true

  version = "~> 1.1.0"
}

resource "cloudflare_record" "blubber-a" {
  domain  = "gameswelt.de"
  name    = "blubber"
  type    = "A"
  value   = "1.1.1.1"
  ttl     = 1
  proxied = "false"
}

with following apply output:

cloudflare_record.blubber-a: Refreshing state... (ID: 0793c4efc5643411bf63bc01ef5f60fb)

An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
  ~ update in-place

Terraform will perform the following actions:

  ~ cloudflare_record.blubber-a
      proxied: "true" => "false"


Plan: 0 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

cloudflare_record.blubber-a: Modifying... (ID: 0793c4efc5643411bf63bc01ef5f60fb)
  proxied: "true" => "false"
cloudflare_record.blubber-a: Modifications complete after 1s (ID: 0793c4efc5643411bf63bc01ef5f60fb)

Apply complete! Resources: 0 added, 1 changed, 0 destroyed.

And following trace: terraform-cloudflare-update.log

The record stayed as proxied in Cloudflare.
screenshot_20180731_170243

from terraform-provider-cloudflare.

patryk avatar patryk commented on May 11, 2024

Thanks for report Matthias! The commit cloudflare/cloudflare-go@a467673 has fixed it. Will prepare a release soon.

from terraform-provider-cloudflare.

maetthu avatar maetthu commented on May 11, 2024

cool, thx!

from terraform-provider-cloudflare.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.