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

huaweicloud_dcs_az data source is always the same #990

Closed
littlejo opened this issue Mar 17, 2021 · 0 comments · Fixed by #1016
Closed

huaweicloud_dcs_az data source is always the same #990

littlejo opened this issue Mar 17, 2021 · 0 comments · Fixed by #1016
Assignees

Comments

@littlejo
Copy link

littlejo commented Mar 17, 2021

Hi there,

Terraform Version

terraform -v
Terraform v0.14.7
+ provider registry.terraform.io/huaweicloud/huaweicloud v1.22.1

Your version of Terraform is out of date! The latest version
is 0.14.8. You can update by downloading from https://www.terraform.io/downloads.html

Affected Resource(s)

  • huaweicloud_dcs_az

Terraform Configuration Files

provider "huaweicloud" {
  region      = "ap-southeast-3"
}

terraform {
  required_providers {
    huaweicloud = {
      source = "huaweicloud/huaweicloud"
      version = "1.22.1"
    }
  }
}
data "huaweicloud_dcs_az" "this" {
  code = "ap-southeast-3b"
}

output huaweicloud_dcs_az {
  value = data.huaweicloud_dcs_az.this
}

The important thing is: code = "ap-southeast-3b"

Debug Output

https://gist.github.com/littlejo/83fcd5d7987589609c80519b27cd20db

I think the problem is there:

2021/03/17 17:19:44 [WARN] Provider "registry.terraform.io/huaweicloud/huaweicloud" produced an unexpected new value for data.huaweicloud_dcs_az.this.
      - .code: was cty.StringVal("ap-southeast-3b"), but now cty.StringVal("ap-southeast-3a")

Expected Behavior

What should have happened?

huaweicloud_dcs_az = {
  "code" = "ap-southeast-3b"
  "id" = "89e4bf6e38284e0787f9f1fd88b7dfd5"
  "name" = "可用区1"
  "port" = "8202"
  "region" = tostring(null)
}

Actual Behavior

What actually happened?

huaweicloud_dcs_az = {
  "code" = "ap-southeast-3a"
  "id" = "82cc0d8877374316b669613539efd0d9"
  "name" = "可用区1"
  "port" = "8202"
  "region" = tostring(null)
}

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform apply
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants