yandex-cloud / terraform-provider-yandex

Terraform Yandex provider
https://www.terraform.io/docs/providers/yandex/
Mozilla Public License 2.0
211 stars 116 forks source link

DataSource yandex_container_repository does not work when folder_is is not set at provider level #420

Open MikailBag opened 8 months ago

MikailBag commented 8 months ago

When folder_id is not set at resource level:

Error: failed to resolve data source Сontainer Repository by name: cannot determine folder_id: please set 'folder_id' key in this resource or at provider level

When folder_id is set:

│ Error: Unsupported argument
│ ...
│ An argument named "folder_id" is not expected here.
saiks24 commented 6 months ago

Hi MikailBag! Thank you for your interest here. Yep, it looks like an issue with this data source. I've provided information about this issue to the developers. I'll return asap with a new information.

saiks24 commented 3 months ago

Hi! Our team decided to fix this issue for ourselves because the problem here is a little bit more complicated (folder_id field doesn't exist for this resource in sdk).

So, I'll return with information about the fix for this problem. Thank you for your contribution.