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

invalid plan warning #2686

Open
pnodet opened this issue Aug 5, 2024 · 2 comments
Open

invalid plan warning #2686

pnodet opened this issue Aug 5, 2024 · 2 comments

Comments

@pnodet
Copy link
Contributor

pnodet commented Aug 5, 2024

2024-08-05T12:00:53.321+0200 [WARN] Provider "registry.terraform.io/scaleway/scaleway" produced an invalid plan for scaleway_iam_ssh_key.public_key, but we are tolerating it because it is using the legacy plugin SDK.
    The following problems may be the cause of any confusing errors from downstream operations:
      - .disabled: planned value cty.False for a non-computed attribute
2024-08-05T12:00:53.323+0200 [WARN]  Provider "registry.terraform.io/scaleway/scaleway" produced an invalid plan for scaleway_domain_record.backend_domain_record[0], but we are tolerating it because it is using the legacy plugin SDK.
    The following problems may be the cause of any confusing errors from downstream operations:
      - .keep_empty_zone: planned value cty.False for a non-computed attribute
2024-08-05T12:00:53.325+0200 [WARN]  Provider "registry.terraform.io/scaleway/scaleway" produced an invalid plan for scaleway_instance_server.server, but we are tolerating it because it is using the legacy plugin SDK.
    The following problems may be the cause of any confusing errors from downstream operations:
      - .enable_dynamic_ip: planned value cty.False for a non-computed attribute
      - .boot_type: planned value cty.StringVal("local") for a non-computed attribute
      - .replace_on_type_change: planned value cty.False for a non-computed attribute
      - .state: planned value cty.StringVal("started") for a non-computed attribute
      - .public_ips: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
      - .root_volume[0].delete_on_termination: planned value cty.True for a non-computed attribute
      - .root_volume[0].boot: planned value cty.False for a non-computed attribute

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment
@remyleone
Copy link
Member

Hello, What version of the provider are you using? Could you share the snippet of code that produce this error?

@pnodet
Copy link
Contributor Author

pnodet commented Aug 5, 2024

I'm running version 2.42.1.

terraform {
  required_version = ">= 1.9.3"
  required_providers {
    scaleway = {
      source  = "scaleway/scaleway"
      version = "2.42.1"
    }
  }
}

The output above was with the following command.

SCW_DEBUG=1 TF_LOG=WARN TF_LOG_PROVIDER=DEBUG terraform plan

Issues are from a file containing multiples scaleway commands.

resource "tls_private_key" "private_key" {
  algorithm = "RSA"
  rsa_bits  = 4096
}

resource "scaleway_iam_ssh_key" "public_key" {
  name       = "publicKey"
  public_key = tls_private_key.private_key.public_key_openssh
}

resource "scaleway_instance_ip" "public_ip" {}

resource "scaleway_instance_server" "server" {
  name  = var.instance_name
  ip_id = scaleway_instance_ip.public_ip.id
  zone  = var.instance_zone
  type  = var.instance_node_type
  image = "ubuntu_focal"

  root_volume {
    size_in_gb = var.instance_root_volume_size
  }
}

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

No branches or pull requests

2 participants