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

digitalocean_app panic #1176

Closed
iwahbe opened this issue Jun 27, 2024 · 1 comment · Fixed by #1184
Closed

digitalocean_app panic #1176

iwahbe opened this issue Jun 27, 2024 · 1 comment · Fixed by #1184
Labels

Comments

@iwahbe
Copy link

iwahbe commented Jun 27, 2024

Bug Report


Describe the bug

The provider panics when trying to create an app with cors rules.

Affected Resource(s)

  • digitalocean_app

Expected Behavior

The provider plugin should never panic, it should either error or create the resource.

Actual Behavior

The provider panicked.

Steps to Reproduce

  1. terraform apply
  2. Type "yes"

Terraform Configuration Files

terraform {
  required_providers {
    digitalocean = {
      source  = "digitalocean/digitalocean"
      version = "2.39.2"
    }
  }

  required_version = ">= 1.2.0"
}

provider "digitalocean" {}

resource "digitalocean_app" "repro" {
  spec {
    name   = "[REDACTED]"
    region = "nyc3"
    ingress {
      rule {
        cors {
          allow_methods = ["GET", "POST", "PUT", "DELETE"]
        }
      }
    }
  }
}

Terraform version

Terraform v1.8.3
on darwin_arm64
+ provider registry.terraform.io/digitalocean/digitalocean v2.39.2

Debug Output
https://gist.github.com/iwahbe/c4964283aac63004f30dde99f7c730e6

Panic Output
I didn't see a crash.log, but I have included the stdout of the crash (including the stack trace): https://gist.github.com/iwahbe/cde411cee6a75dd241ef7475d9b8ea71

Additional context

Important Factoids

References

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