digitalocean / terraform-provider-digitalocean

Terraform DigitalOcean provider
https://registry.terraform.io/providers/digitalocean/digitalocean/latest/docs
Mozilla Public License 2.0
510 stars 278 forks source link

What is `environment_slug` in `digitalocean_app.service`? #1206

Closed bartekpacia closed 2 months ago

bartekpacia commented 2 months ago

Basically the title.

I couldn't find any information on it, and in examples I've only seen it assigned the go value:

resource "digitalocean_app" "app" {
  spec {
    name   = "bee-ci-2"
    region = "sfo"

    service {
      name               = "backend"
      environment_slug   = "go" # <--- Where this comes from?
      instance_count     = 1
      instance_size_slug = "apps-s-1vcpu-0.5gb"
    }

    # ...
  }
}

Does Go mean it's a Golang env? Or what?

andrewsomething commented 2 months ago

Hi @bartekpacia,

This recently came up over in a discussion thread: https://github.com/digitalocean/terraform-provider-digitalocean/discussions/1190

Environment slugs were a hint about the type of app, but they no longer have any material impact on your app. You can exclude them completely from your app spec. They will be deprecated at some point in the future.

We should probably go ahead and remove them from the examples to prevent confusion.

bartekpacia commented 2 months ago

I see, thank you!