Closed cherryblossom000 closed 2 years ago
v1.3.0
terraform { required_providers { koyeb = { source = "koyeb/koyeb" version = "~> 0.1.0" } } } provider "koyeb" {} locals { app_name = "crash" } resource "koyeb_app" "crash" { name = local.app_name } resource "koyeb_service" "service" { app_name = local.app_name definition { name = "service" docker { image = "docker.io/koyeb/demo:b1ddc2682413" args = ["foo=bar"] } instance_types { type = "nano" } scalings {} regions = ["par"] ports { port = 3000 protocol = "http" } } depends_on = [koyeb_app.crash] }
https://gist.github.com/cherryblossom000/f580fcdfb0a7abbb7b1326a3317f1caa
https://gist.github.com/cherryblossom000/6844ff2d58ea29f28fb7892161cb80ca
The service ‘service’ should be created.
The provider panicked. The error occurs here when casting rawDockerSource["args"] into []string: https://github.com/koyeb/terraform-provider-koyeb/blob/036b35ccc507671c14912ac4820016cf4bfba6ca/koyeb/resource_koyeb_service.go#L319
rawDockerSource["args"]
[]string
terraform init
KOYEB_TOKEN
terraform apply
Hi @cherryblossom000,
Thanks for reporting this and sorry for the late reply.
The latest release should fix this behavior.
Terraform Version
v1.3.0
Affected Resource(s)
Terraform Configuration Files
Debug Output
https://gist.github.com/cherryblossom000/f580fcdfb0a7abbb7b1326a3317f1caa
Panic Output
https://gist.github.com/cherryblossom000/6844ff2d58ea29f28fb7892161cb80ca
Expected Behavior
The service ‘service’ should be created.
Actual Behavior
The provider panicked. The error occurs here when casting
rawDockerSource["args"]
into[]string
: https://github.com/koyeb/terraform-provider-koyeb/blob/036b35ccc507671c14912ac4820016cf4bfba6ca/koyeb/resource_koyeb_service.go#L319Steps to Reproduce
terraform init
KOYEB_TOKEN
environment variableterraform apply