Skip to content

(Data Source) Project properties gone after upgrading to 1.8.0 #79

@ryskov

Description

@ryskov

After upgrading from version 1.7.5 -> 1.8.0 i am experiencing that project environments and name has disappeared when read as a data source. If its relevant i am on an Organization plan.

I have 2 Terraform projects:

  • A: One that manages the project and its environments
  • B: One that reads out the project as a data source

In project A i am able to create, manage and read my projects including environments as always (no problem here). In project B my data "render_project" appears to only have its id property read out. Here are some relevant HCL snippets:

In project A:

resource "render_project" "project" {
  name = "my-project-name"
  environments = {
    "env1" = {
      name             = "env1",
      network_isolated = true,
      protected_status = "protected"
    },
    "env2" = {
      name             = "env2",
      network_isolated = true,
      protected_status = "protected"
    }
  }
}

This works and terraform state show render_project.project confirms:

# render_project.project:
resource "render_project" "project" {
    environments = {
        "env1" = {
            id               = "env1-id"
            name             = "env1"
            network_isolated = true
            protected_status = "protected"
        },
        "env2" = {
            id               = "env2-id"
            name             = "env2"
            network_isolated = true
            protected_status = "protected"
        },
    }
    id           = "my-project-id"
    name         = "my-project"
}

Now in Terraform project B i have the following data source:

data "render_project" "project" {
  id = "my-project-id"
}

This does not seem to read out the full projects with environments anymore (worked in 1.7.5):

locals {
    environments = data.render_project.project.environments
}

Here local.environments resolves to null.

Relevant ids and names have been changed here to not reveal the real values but i am 100% certain that the queried id is correct in the data source. I have double checked and verified that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions