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

data.cloudflares_zone always appearing on the execution plan. #828

Closed
bosmak-alt opened this issue Oct 16, 2020 · 1 comment
Closed

data.cloudflares_zone always appearing on the execution plan. #828

bosmak-alt opened this issue Oct 16, 2020 · 1 comment
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@bosmak-alt
Copy link

Terraform version

Terraform v0.13.4
+ provider registry.terraform.io/cloudflare/cloudflare v2.11.0
+ provider registry.terraform.io/hashicorp/aws v3.5.0
+ provider registry.terraform.io/hashicorp/local v2.0.0

Affected resource(s)

data.cloudflare_zones

Terraform configuration files

# main.tf
terraform {
  required_version = "~> 0.13.0"

  required_providers {
    cloudflare = {
      source = "cloudflare/cloudflare"
      version = "~> 2.11.0"
    }
  }
}

provider "cloudflare" {
  email   = "valid_email"
  api_key = "valid_api_key"
}

data "cloudflare_zones" "this" {
  filter {
    name = "valid_cloudflare_zone"
    lookup_type = "exact"
  }
}

Expected behavior

Data sources should not show up in the plan when there are no changes to the data source configuration or depends_on references.

Actual behavior

The data source is always appearing on the plan and requesting to be applied when there are no changes.

Steps to reproduce

  1. terraform apply
  2. accept changes
  3. terraform apply

References

This behavior has been noted on a Terraform issue and noted as a provider issue.
hashicorp/terraform#25805

Community note

  • Please vote on this issue by adding a 👍 reaction
    to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull
    request, please leave a comment
@bosmak-alt bosmak-alt added the kind/bug Categorizes issue or PR as related to a bug. label Oct 16, 2020
@bosmak-alt
Copy link
Author

bosmak-alt commented Oct 16, 2020

Duplicated of #764

Found it after I opened this one :(
Sorry about that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

1 participant