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

Bug: "produced an unexpected new value: Root resource was present, but now absent." + Question: Adding an "App Platform" into a "Project" #1117

Open
mwyld opened this issue Mar 1, 2024 · 1 comment
Labels

Comments

@mwyld
Copy link

mwyld commented Mar 1, 2024

Bug Report

I'm new to terraform and digital ocean but is there a reason why you can't move an app platform into a project? digitalocean_project

I'm also getting the following message when trying to add a domain or space into a project,

const spaces_bucket = new SpacesBucket(this, `my-spaces-bucket`, spaces-bucket_config)

new ProjectResources(this, `my-project-resource`, {
          project: `my-project`,
          resources: [
            Token.asString(spaces_bucket.urn),
          ],
});
                            │ Error: Provider produced inconsistent result after apply
                            │
                            │ When applying changes to
                            │ digitalocean_project_resources.my-app-project-resource,
                            │ provider "provider[\"registry.terraform.io/digitalocean/digitalocean\"]"
                            │ produced an unexpected new value: Root resource was present, but now absent.
                            │
                            │ This is a bug in the provider, which should be reported in the provider's own
                            │ issue tracker.
@mwyld mwyld added the bug label Mar 1, 2024
@andrewsomething
Copy link
Member

Hi @mwyld,

Is that Terraform CDK? In project: my-project, what is the value of my-project? It should be the ID of the project. Here's a working example in HCL that creates a new Space and puts into my existing project named "Test":

data "digitalocean_project" "test" {
  name = "Test"
}

resource "digitalocean_spaces_bucket" "foo" {
  name   = "new-test-bucket-with-a-unique-name"
  region = "nyc3"
}

resource "digitalocean_project_resources" "foo" {
  project = data.digitalocean_project.test.id
  resources = [
    digitalocean_spaces_bucket.foo.urn
  ]
}

I'm new to terraform and digital ocean but is there a reason why you can't move an app platform into a project?

You can place an app into a project. It looks like we're missing it in the documentation. Thanks for pointing that out!

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

No branches or pull requests

2 participants