terraform-provider-yandex icon indicating copy to clipboard operation
terraform-provider-yandex copied to clipboard

yandex_cdn_origin_group, inconsistency with origin type in web console

Open baznikin opened this issue 1 year ago • 0 comments

When you create CDN origin in web console you can select origin type to "bucket" and choose bucket from drop-down menu. You can then import this resource into Terraform state. Under hood it sets `origin { source="BUCKET.storage.yandexcloud.net" }.

However, if you create resource with Terraform, web console show origin type not as bucket with name "BUCKET", but as server with address "BUCKET.storage.yandexcloud.net". If you change its type in UI to Bucket then terraform see no differences (obviously).

I suppose this issue is for web console team or API team. I suppose there is hidden field 'type' used by UI and API called by Terraform provider should guess it OR web UI should guess its type basing on source address.

baznikin avatar Aug 16 '23 08:08 baznikin